Class OpenMPTargetResourceFactory¶
Defined in File OpenMPTargetMemoryResourceFactory.hpp
Inheritance Relationships¶
Base Type¶
public umpire::resource::MemoryResourceFactory
(Class MemoryResourceFactory)
Class Documentation¶
-
class
umpire::resource
::
OpenMPTargetResourceFactory
: public umpire::resource::MemoryResourceFactory¶ Factory class for constructing MemoryResource objects that use GPU memory.
Public Functions
-
bool
isValidMemoryResourceFor
(const std::string &name) noexcept final override¶
-
std::unique_ptr<resource::MemoryResource>
create
(const std::string &name, int id) final override¶ Construct a MemoryResource with the given name and id.
- Parameters
name
: Name of the MemoryResource.id
: ID of the MemoryResource.traits
: Traits for the MemoryResource
-
std::unique_ptr<resource::MemoryResource>
create
(const std::string &name, int id, MemoryResourceTraits traits) final override¶ Construct a MemoryResource with the given name and id.
- Parameters
name
: Name of the MemoryResource.id
: ID of the MemoryResource.traits
: Traits for the MemoryResource
-
MemoryResourceTraits
getDefaultTraits
() final override¶
-
bool