File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 19
19
"cacheVariables" : {
20
20
"CMAKE_EXPORT_COMPILE_COMMANDS" : " ON" ,
21
21
"CMAKE_CXX_COMPILER" : " icx" ,
22
+ "CMAKE_C_COMPILER" : " cl" ,
22
23
"GGML_SYCL" : " ON" ,
23
24
"CMAKE_INSTALL_RPATH" : " $ORIGIN;$ORIGIN/.."
24
25
}
Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ if (GGML_SYCL)
490
490
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-targets=nvptx64-nvidia-cuda" )
491
491
add_compile_definitions (GGML_SYCL_WARP_SIZE=32)
492
492
else ()
493
- add_compile_definitions (GGML_SYCL_WARP_SIZE=16 )
493
+ add_compile_definitions (GGML_SYCL_WARP_SIZE=32 )
494
494
endif ()
495
495
496
496
file (GLOB GGML_HEADERS_SYCL "ggml-sycl/*.hpp" )
@@ -1168,7 +1168,9 @@ target_link_libraries(ggml PRIVATE Threads::Threads ${GGML_EXTRA_LIBS})
1168
1168
1169
1169
find_library (MATH_LIBRARY m)
1170
1170
if (MATH_LIBRARY)
1171
- target_link_libraries (ggml PRIVATE ${MATH_LIBRARY} )
1171
+ if (NOT WIN32 OR NOT GGML_SYCL)
1172
+ target_link_libraries (ggml PRIVATE ${MATH_LIBRARY} )
1173
+ endif ()
1172
1174
endif ()
1173
1175
1174
1176
if (BUILD_SHARED_LIBS )
You can’t perform that action at this time.
0 commit comments