Skip to content

Commit 838beb9

Browse files
authored
chore: add global SYCL compile flags (leejet#597)
1 parent f23b803 commit 838beb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
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)