21 #include <raft/core/handle.hpp>
61 std::unordered_map<cumlHandle_t, raft::handle_t*> _handleMap;
62 mutable std::mutex _mapMutex;
Definition: cumlHandle.hpp:29
static const cumlHandle_t INVALID_HANDLE
sentinel value for invalid ID
Definition: cumlHandle.hpp:58
std::pair< raft::handle_t *, cumlError_t > lookupHandlePointer(cumlHandle_t handle) const
Lookup pointer to handle object for handle ID in map.
Definition: cumlHandle.cpp:67
std::pair< cumlHandle_t, cumlError_t > createAndInsertHandle(cudaStream_t stream)
Creates new handle object with associated handle ID and insert into map.
Definition: cumlHandle.cpp:31
cumlError_t removeAndDestroyHandle(cumlHandle_t handle)
Remove handle from map and destroy associated handle object.
Definition: cumlHandle.cpp:78
int cumlHandle_t
Definition: cuml_api.h:37
cumlError_t
Definition: cuml_api.h:39
Definition: dbscan.hpp:30
HandleMap handleMap
Static handle map instance (see cumlHandle.cpp)
Definition: cumlHandle.cpp:29