Skip to content

Commit f7d4a5d

Browse files
airMengstduhpf
authored andcommitted
add global SYCL compile flags
1 parent 0b7efbe commit f7d4a5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ endif()
9696
if(SD_SYCL)
9797
message("-- Use SYCL as backend stable-diffusion")
9898
set(GGML_SYCL ON)
99+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing -fsycl")
99100
add_definitions(-DSD_USE_SYCL)
100101
# disable fast-math on host, see:
101102
# https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-10/fp-model-fp.html

0 commit comments

Comments
 (0)