File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ if (WHISPER_SDL2)
137
137
set_target_properties (lsp PROPERTIES FOLDER "examples" )
138
138
if (GGML_SYCL)
139
139
add_subdirectory (sycl)
140
- set_target_properties (sycl PROPERTIES FOLDER "examples" )
140
+ set_target_properties (ls- sycl-device PROPERTIES FOLDER "examples" )
141
141
endif ()
142
142
endif (WHISPER_SDL2)
143
143
endif ()
Original file line number Diff line number Diff line change 5
5
set (TARGET ls-sycl-device)
6
6
add_executable (${TARGET} ls-sycl-device.cpp)
7
7
install (TARGETS ${TARGET} RUNTIME)
8
- target_link_libraries (${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} )
9
- target_compile_features (${TARGET} PRIVATE cxx_std_17)
8
+ target_link_libraries (${TARGET} PRIVATE common whisper ${CMAKE_THREAD_LIBS_INIT} )
9
+ target_compile_features (${TARGET} PRIVATE cxx_std_17)
Original file line number Diff line number Diff line change @@ -7,13 +7,16 @@ cd build
7
7
source /opt/intel/oneapi/setvars.sh
8
8
9
9
# for FP16
10
- # cmake .. -DWHISPER_SYCL =ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DWHISPER_SYCL_F16=ON # faster for long-prompt inference
10
+ # cmake .. -DGGML_SYCL =ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DWHISPER_SYCL_F16=ON # faster for long-prompt inference
11
11
12
12
# for FP32
13
- cmake .. -DWHISPER_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx
13
+ cmake .. -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx
14
+
15
+ # for other features from the examples, e.g. stream and talk link with SDL2:
16
+ # cmake .. -DGGML_SYCL=ON -DWHISPER_SDL2=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx
14
17
15
18
# build example/main only
16
19
# cmake --build . --config Release --target main
17
20
18
21
# build all binary
19
- cmake --build . --config Release -v
22
+ cmake --build . --config Release -v
You can’t perform that action at this time.
0 commit comments