1
0
mirror of https://github.com/fumiama/base16384-sycl.git synced 2026-06-27 08:10:27 +08:00

optimize: add xeinfo class & more compl. kernel

This commit is contained in:
源文雨
2025-09-29 17:01:27 +08:00
parent 78c6dea4c6
commit cbe9cda397
5 changed files with 256 additions and 67 deletions

View File

@@ -64,11 +64,7 @@ set(LINK_FLAGS "-fsycl")
# Release 模式链接优化
if(CMAKE_BUILD_TYPE STREQUAL "Release")
if(WIN32)
set(LINK_FLAGS "${LINK_FLAGS} /LTCG /OPT:REF /OPT:ICF")
else()
set(LINK_FLAGS "${LINK_FLAGS} -flto -Wl,-O1 -Wl,--as-needed")
endif()
set(LINK_FLAGS "${LINK_FLAGS} -flto -fuse-ld=lld -Wl,-O1 -Wl,--as-needed")
endif()
add_subdirectory(libs)