Allocator using a named Umpire allocator over a host-accessible resource.
More...
#include <ginkgo/core/base/memory.hpp>
Allocator using a named Umpire allocator over a host-accessible resource.
- Warning
- Umpire's ResourceManager is a function-local static and this class holds a non-owning handle into it, so an Executor using it must not outlive main() (e.g. in a global shared_ptr). The same holds for UmpireCudaAllocator and UmpireHipAllocator.
◆ UmpireCpuAllocator()
| gko::UmpireCpuAllocator::UmpireCpuAllocator |
( |
std::string |
name | ) |
|
|
explicit |
- Parameters
-
| name | name of an allocator registered with Umpire. |
- Exceptions
-
| Error | if name is not registered, or its resource is not host-accessible. |
| NotCompiled | if Ginkgo was built without Umpire. |
The documentation for this class was generated from the following file: