opencl: cache compiled cl_program binaries on disk (#26050)

This commit is contained in:
Hongqiang Wang
2026-07-24 08:14:33 -07:00
committed by GitHub
parent 56a83860dd
commit ed7adbfefd
5 changed files with 747 additions and 185 deletions
+2
View File
@@ -5,6 +5,8 @@ set(TARGET_NAME ggml-opencl)
ggml_add_backend_library(${TARGET_NAME}
ggml-opencl.cpp
cl-program-cache.cpp
cl-program-cache.h
../../include/ggml-opencl.h)
target_link_libraries(${TARGET_NAME} PRIVATE ${OpenCL_LIBRARIES})
target_include_directories(${TARGET_NAME} PRIVATE ${OpenCL_INCLUDE_DIRS})