File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,19 @@ if (GGML_SYCL_GRAPH)
95
95
target_compile_definitions (ggml-sycl PRIVATE GGML_SYCL_GRAPH)
96
96
endif ()
97
97
98
+ if (WIN32 )
99
+ if ( ${CMAKE_GENERATOR} MATCHES "Visual Studio" AND NOT (${CMAKE_GENERATOR_TOOLSET} MATCHES "Intel C" ))
100
+ set_target_properties (ggml-sycl PROPERTIES VS_PLATFORM_TOOLSET "Intel C++ Compiler 2025" )
101
+ set (CMAKE_CXX_COMPILER "icx" )
102
+ set (CMAKE_CXX_COMPILER_ID "IntelLLVM" )
103
+ endif ()
104
+ endif ()
105
+
98
106
# Link against Intel oneMKL or oneMath
99
107
if (GGML_SYCL_TARGET STREQUAL "INTEL" )
100
108
# Intel devices use Intel oneMKL directly instead of oneMath to avoid the limitation of linking Intel oneMKL statically
101
109
# See https://github.com/uxlfoundation/oneMath/issues/654
110
+ find_package (IntelSYCL REQUIRED)
102
111
find_package (MKL REQUIRED)
103
112
target_link_libraries (ggml-sycl PRIVATE MKL::MKL_SYCL::BLAS)
104
113
target_compile_definitions (ggml-sycl PRIVATE GGML_SYCL_USE_INTEL_ONEMKL)
You can’t perform that action at this time.
0 commit comments