Skip to content

Commit 9fd768a

Browse files
airMengthxCode
authored andcommitted
chore: add global SYCL compile flags (leejet#597)
1 parent e2a21bc commit 9fd768a

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
@@ -107,6 +107,7 @@ endif()
107107
if(SD_SYCL)
108108
message("-- Use SYCL as backend stable-diffusion")
109109
set(GGML_SYCL ON)
110+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing -fsycl")
110111
add_definitions(-DSD_USE_SYCL)
111112
# disable fast-math on host, see:
112113
# 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)