]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : remove opencl (#0)
authorGeorgi Gerganov <redacted>
Sat, 15 Jun 2024 17:54:22 +0000 (20:54 +0300)
committerGeorgi Gerganov <redacted>
Sat, 15 Jun 2024 19:05:47 +0000 (22:05 +0300)
ggml-ci

CMakeLists.txt
scripts/sync-llama-am.sh
scripts/sync-whisper-am.sh
src/CMakeLists.txt

index 492e9468af9aa6ca652bf1735dc30a570ea97db2..2af2122d419e0579b46b9e2f8773719273563dc9 100644 (file)
@@ -42,7 +42,6 @@ option(GGML_TEST_COVERAGE           "ggml: enable test coverage" OFF)
 option(GGML_PERF                    "ggml: enable perf timings"               OFF)
 option(GGML_NO_ACCELERATE           "ggml: disable Accelerate framework"      OFF)
 option(GGML_OPENBLAS                "ggml: use OpenBLAS"                      OFF)
-option(GGML_CLBLAST                 "ggml: use clBLAST"                       OFF)
 option(GGML_HIPBLAS                 "ggml: use hipBLAS"                       OFF)
 option(GGML_CUDA                    "ggml: use CUDA"                          OFF)
 option(GGML_CUBLAS                  "ggml: use CUDA (deprecated)"             OFF)
index 6cdce21a391d41a4f795e3ac83b93cbb4f127455..b0170e562be24f354d70c6dcf6e922dda1bdff1b 100755 (executable)
@@ -107,8 +107,6 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
     # ggml-metal.m        -> src/ggml-metal.m
     # ggml-mpi.h          -> src/ggml-mpi.h
     # ggml-mpi.c          -> src/ggml-mpi.c
-    # ggml-opencl.cpp     -> src/ggml-opencl.cpp
-    # ggml-opencl.h       -> src/ggml-opencl.h
     # ggml-quants.c       -> src/ggml-quants.c
     # ggml-quants.h       -> src/ggml-quants.h
     # ggml-rpc.cpp        -> src/ggml-rpc.cpp
@@ -146,8 +144,6 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
         -e 's/\/ggml-metal\.m/\/src\/ggml-metal.m/g' \
         -e 's/\/ggml-mpi\.h/\/src\/ggml-mpi.h/g' \
         -e 's/\/ggml-mpi\.c/\/src\/ggml-mpi.c/g' \
-        -e 's/\/ggml-opencl\.cpp/\/src\/ggml-opencl.cpp/g' \
-        -e 's/\/ggml-opencl\.h/\/src\/ggml-opencl.h/g' \
         -e 's/\/ggml-quants\.c/\/src\/ggml-quants.c/g' \
         -e 's/\/ggml-quants\.h/\/src\/ggml-quants.h/g' \
         -e 's/\/ggml-rpc\.cpp/\/src\/ggml-rpc.cpp/g' \
index 09a0b93a19c57bc91229ead3161c44e53aa57159..e3ce104eee11b81392ff52d718da28dac899e6bf 100755 (executable)
@@ -112,8 +112,6 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
     # ggml-metal.m        -> src/ggml-metal.m
     # ggml-mpi.h          -> src/ggml-mpi.h
     # ggml-mpi.c          -> src/ggml-mpi.c
-    # ggml-opencl.cpp     -> src/ggml-opencl.cpp
-    # ggml-opencl.h       -> src/ggml-opencl.h
     # ggml-quants.c       -> src/ggml-quants.c
     # ggml-quants.h       -> src/ggml-quants.h
     # ggml-rpc.cpp        -> src/ggml-rpc.cpp
@@ -157,8 +155,6 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
         -e 's/\/ggml-metal\.m/\/src\/ggml-metal.m/g' \
         -e 's/\/ggml-mpi\.h/\/src\/ggml-mpi.h/g' \
         -e 's/\/ggml-mpi\.c/\/src\/ggml-mpi.c/g' \
-        -e 's/\/ggml-opencl\.cpp/\/src\/ggml-opencl.cpp/g' \
-        -e 's/\/ggml-opencl\.h/\/src\/ggml-opencl.h/g' \
         -e 's/\/ggml-quants\.c/\/src\/ggml-quants.c/g' \
         -e 's/\/ggml-quants\.h/\/src\/ggml-quants.h/g' \
         -e 's/\/ggml-rpc\.cpp/\/src\/ggml-rpc.cpp/g' \
index 7ca88ebbab44b6d143af70dc4f17c4b5430aa437..fdd4d58670d81ee4621e115fe1f2cadcf7b31b10 100644 (file)
@@ -177,34 +177,6 @@ if (GGML_OPENBLAS)
     endif()
 endif()
 
-if (GGML_CLBLAST)
-    if(NOT CLBLAST_HOME)
-        set(CLBLAST_HOME
-            /usr
-            /usr/local
-            $ENV{CLBLAST_HOME}
-            )
-    endif()
-
-    find_path(CLBLAST_INC NAMES clblast.h PATHS ${CLBLAST_HOME} PATH_SUFFIXES include)
-    find_library(CLBLAST_LIB NAMES clblast PATHS ${CLBLAST_HOME} PATH_SUFFIXES build)
-    find_path(OPENCL_INC NAMES CL/opencl.h PATHS ${OPENCL_ROOT})
-    find_library(OPENCL_LIB NAMES OpenCL)
-    if (CLBLAST_LIB AND OPENCL_LIB AND CLBLAST_INC AND OPENCL_INC)
-        message(STATUS "clBLAST found")
-
-        set(GGML_EXTRA_INCS  ${GGML_EXTRA_INCS}  ${CLBLAST_INC} ${OPENCL_INC})
-        set(GGML_EXTRA_LIBS  ${GGML_EXTRA_LIBS}  ${CLBLAST_LIB} ${OPENCL_LIB})
-        set(GGML_EXTRA_FLAGS ${GGML_EXTRA_FLAGS} -DGGML_USE_CLBLAST)
-
-        set(GGML_SOURCES_OPENCL ggml-opencl.cpp ggml-opencl.h)
-
-        link_libraries("-Wl,--copy-dt-needed-entries")
-    else()
-        message(WARNING "clBLAST not found")
-    endif()
-endif()
-
 if (GGML_CUBLAS)
     message(WARNING "GGML_CUBLAS is deprecated and will be removed in the future.\nUse GGML_CUDA instead")
     set(GGML_CUDA ON)
@@ -542,7 +514,6 @@ add_library(${TARGET}
     ../include/ggml/ggml-alloc.h
     ../include/ggml/ggml-backend.h
     ${GGML_SOURCES_CUDA}
-    ${GGML_SOURCES_OPENCL}
     ${GGML_SOURCES_METAL}
     ${GGML_SOURCES_RPC}
     )