Skip to content

Commit 52e6967

Browse files
committed
[FORK][FIX] OCL impl uses dlopen
1 parent 6961af5 commit 52e6967

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gpu/ocl/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ list(APPEND SOURCES ${kernel_list_src})
3939

4040
set(OBJ_LIB ${LIB_PACKAGE_NAME}_gpu_ocl)
4141
add_library(${OBJ_LIB} OBJECT ${SOURCES})
42+
set_property(GLOBAL APPEND PROPERTY DNNL_SUBDIR_EXTRA_SHARED_LIBS
43+
${CMAKE_DL_LIBS})
4244
set_property(GLOBAL APPEND PROPERTY DNNL_LIB_DEPS
4345
$<TARGET_OBJECTS:${OBJ_LIB}>)

0 commit comments

Comments
 (0)