Skip to content

Commit 3e74c27

Browse files
lhezmax-krasnyansky
authored andcommitted
opencl: Clean up small-alloc in CMake files
1 parent e872f8a commit 3e74c27

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

ggml/src/ggml-opencl2/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ if (OpenCL_FOUND)
2626

2727
add_compile_definitions(GGML_OPENCL_SOA_Q)
2828

29-
if (GGML_OPENCL_SMALL_ALLOC)
30-
message(STATUS "OpenCL will allocate a separate buffer for each tensor. "
31-
"The default behavior allocates a large buffer to hold multiple tensors.")
32-
add_compile_definitions(GGML_OPENCL_SMALL_ALLOC)
33-
endif ()
34-
3529
if (GGML_OPENCL_USE_ADRENO_KERNELS)
3630
message(STATUS "OpenCL will use matmul kernels optimized for Adreno")
3731
add_compile_definitions(GGML_OPENCL_USE_ADRENO_KERNELS)

src/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ add_library(llama
2424
unicode-data.cpp
2525
)
2626

27-
# TODO: This is intrusive. We intend to remove SMALL_ALLOC path once the we fully
28-
# migrate to the non SMALL_ALLOC path.
29-
if (GGML_OPENCL)
30-
add_compile_definitions(GGML_USE_OPENCL)
31-
if (GGML_OPENCL_SMALL_ALLOC)
32-
add_compile_definitions(GGML_OPENCL_SMALL_ALLOC)
33-
endif ()
34-
endif ()
35-
3627
target_include_directories(llama PUBLIC . ../include)
3728
target_compile_features (llama PUBLIC cxx_std_17) # don't bump
3829

tests/test-backend-ops.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ struct test_case {
465465
// post-graph sentinel
466466
add_sentinel(ctx);
467467

468+
// allocate
468469
ggml_backend_buffer_t buf = ggml_backend_alloc_ctx_tensors(ctx, backend1);
469470
if (buf == NULL) {
470471
printf("failed to allocate tensors [%s] ", ggml_backend_name(backend1));

0 commit comments

Comments
 (0)