Skip to content

Commit

Permalink
examples : more CUDA leftovers (#0)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 27, 2024
1 parent fe3158e commit f0913a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/magika/CMakeLists.txt
Expand Up @@ -8,8 +8,8 @@ target_link_libraries(${TEST_TARGET} PRIVATE ggml common common-ggml)
#
# For GPU offloading

if (GGML_CUBLAS)
add_compile_definitions(GGML_USE_CUBLAS)
if (GGML_CUDA)
add_compile_definitions(GGML_USE_CUDA)
endif()

if (GGML_CLBLAST)
Expand Down
8 changes: 4 additions & 4 deletions examples/python/ggml/__init__.pyi
Expand Up @@ -568,8 +568,8 @@ class lib:
def ggml_cpu_has_clblast() -> int:
""" GGML_API int ggml_cpu_has_clblast (void);"""
...
def ggml_cpu_has_cublas() -> int:
""" GGML_API int ggml_cpu_has_cublas (void);"""
def ggml_cpu_has_cuda() -> int:
""" GGML_API int ggml_cpu_has_cuda (void);"""
...
def ggml_cpu_has_f16c() -> int:
""" GGML_API int ggml_cpu_has_f16c (void);"""
Expand Down Expand Up @@ -967,8 +967,8 @@ class lib:
def ggml_init(params: ffi.CData) -> ffi.CData:
""" GGML_API struct ggml_context * ggml_init(struct ggml_init_params params);"""
...
def ggml_init_cublas() -> None:
"""GGML_API void ggml_init_cublas(void);"""
def ggml_init_cuda() -> None:
"""GGML_API void ggml_init_cuda(void);"""
...
def ggml_internal_get_type_traits(type: int) -> ffi.CData:
""" ggml_type_traits_t ggml_internal_get_type_traits(enum ggml_type type);"""
Expand Down

0 comments on commit f0913a8

Please sign in to comment.