#include <cumlHandle.hpp>

Public Member Functions | |
| std::pair< cumlHandle_t, cumlError_t > | createAndInsertHandle (cudaStream_t stream) |
| Creates new handle object with associated handle ID and insert into map. More... | |
| std::pair< raft::handle_t *, cumlError_t > | lookupHandlePointer (cumlHandle_t handle) const |
| Lookup pointer to handle object for handle ID in map. More... | |
| cumlError_t | removeAndDestroyHandle (cumlHandle_t handle) |
| Remove handle from map and destroy associated handle object. More... | |
Static Public Attributes | |
| static const cumlHandle_t | INVALID_HANDLE = -1 |
| sentinel value for invalid ID More... | |
Map from integral cumlHandle_t identifiers to cumlHandle pointer protected by a mutex for thread-safe access.
| std::pair< cumlHandle_t, cumlError_t > ML::HandleMap::createAndInsertHandle | ( | cudaStream_t | stream | ) |
Creates new handle object with associated handle ID and insert into map.
| [in] | stream | the stream to which cuML work should be ordered. |
| std::pair< raft::handle_t *, cumlError_t > ML::HandleMap::lookupHandlePointer | ( | cumlHandle_t | handle | ) | const |
Lookup pointer to handle object for handle ID in map.
handle is invalid. | cumlError_t ML::HandleMap::removeAndDestroyHandle | ( | cumlHandle_t | handle | ) |
Remove handle from map and destroy associated handle object.
handle is invalid.
|
static |
sentinel value for invalid ID