19 #include <cuda_runtime_api.h>
30 #error "This header is only for the C-API and should not be included from the C++ API."
41 typedef cudaError_t (*
cuml_allocate)(
void** p,
size_t n, cudaStream_t stream);
cudaError_t(* cuml_deallocate)(void *p, size_t n, cudaStream_t stream)
Definition: cuml_api.h:42
cudaError_t(* cuml_allocate)(void **p, size_t n, cudaStream_t stream)
Definition: cuml_api.h:41
int cumlHandle_t
Definition: cuml_api.h:37
const char * cumlGetErrorString(cumlError_t error)
Get a human readable error string for the passed in error code.
Definition: cuml_api.cpp:27
cumlError_t cumlCreate(cumlHandle_t *handle, cudaStream_t stream)
Creates a cumlHandle_t.
Definition: cuml_api.cpp:37
cumlError_t cumlDestroy(cumlHandle_t handle)
Release all resource internally managed by cumlHandle_t.
Definition: cuml_api.cpp:66
cumlError_t cumlSetDeviceAllocator(cumlHandle_t handle, cuml_allocate allocate_fn, cuml_deallocate deallocate_fn)
sets the allocator to use for all device allocations done in cuML.
cumlError_t cumlGetStream(cumlHandle_t handle, cudaStream_t *stream)
sets the stream to which all cuML work issued via the passed handle should be ordered.
Definition: cuml_api.cpp:44
cumlError_t
Definition: cuml_api.h:39
@ CUML_INVALID_HANDLE
Definition: cuml_api.h:39
@ CUML_SUCCESS
Definition: cuml_api.h:39
@ CUML_ERROR_UNKNOWN
Definition: cuml_api.h:39
cumlError_t cumlSetHostAllocator(cumlHandle_t handle, cuml_allocate allocate_fn, cuml_deallocate deallocate_fn)
sets the allocator to use for substantial host allocations done in cuML.