Skip to content

Commit

Permalink
doc: add comments to ggml_cublas_loaded()
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Nov 6, 2023
1 parent c58e809 commit fe381b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ggml-cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ extern "C" {

#define GGML_CUDA_MAX_DEVICES 16

// Always success. To check if CUDA is actually loaded, use `ggml_cublas_loaded`.
GGML_API void ggml_init_cublas(void);

// Returns `true` if there are available CUDA devices and cublas loads successfully; otherwise, it returns `false`.
GGML_API bool ggml_cublas_loaded(void);

GGML_API void * ggml_cuda_host_malloc(size_t size);
Expand Down

0 comments on commit fe381b0

Please sign in to comment.