Skip to content

Commit

Permalink
reduced severity of error, removed
Browse files Browse the repository at this point in the history
  • Loading branch information
101001000 committed Sep 8, 2023
1 parent bb4b31b commit 5995373
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ if (DOWNLOAD_DPCPP AND SYCL_PATH)
message(FATAL_ERROR "DOWNLOAD_DPCPP and SYCL_PATH cannot be set together")
endif()
if (USE_ICPX AND CUSTOM_SHADERS)
message(FATAL_ERROR "ICPX won't support IR code emission")
message(WARNING "ICPX won't support IR code emission, CUSTOM_SHADERS forcibly disabled!")
set(CUSTOM_SHADERS OFF)
endif()
if (NOT SYCL_TARGETS)
message(WARNING "No targets selected, ElevenRender requires AOT for the running device, OpenCL cpu targets selected by default")
Expand Down Expand Up @@ -100,9 +101,8 @@ set(CMAKE_C_COMPILER_WORKS 1) # TODO: remove this
#set(CMAKE_RC_COMPILER "${SYCL_PATH}/bin/${C_EXEC_NAME}" CACHE INTERNAL "RC compiler" FORCE)
#set(CMAKE_RC_COMPILER_WORKS 1) # TODO: remove this
set(CMAKE_CXX_FLAGS "-Wno-unused-command-line-argument -fsycl -fsycl-targets=${SYCL_TARGETS}")
set(SYCL_CLANG_EXTRA_FLAGS "-Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=${OFFLOAD_ARCH} -Xsycl-target-backend=spir64_gen -device -Xsycl-target-backend=spir64_gen ${SPIR64_DEVICES}")
separate_arguments(CMAKE_CXX_FLAG_LIST UNIX_COMMAND ${CMAKE_CXX_FLAGS})

separate_arguments(SHADER_COMPILE_FLAGS UNIX_COMMAND ${CMAKE_CXX_FLAGS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=${OFFLOAD_ARCH} -Xsycl-target-backend=spir64_gen -device -Xsycl-target-backend=spir64_gen ${SPIR64_DEVICES}")


project(ElevenRender)
Expand Down Expand Up @@ -151,7 +151,7 @@ if(CUSTOM_SHADERS)
set_source_files_properties(${CMAKE_BINARY_DIR}/shader.ll PROPERTIES LANGUAGE CXX)
add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/shader.ll
COMMAND ${CMAKE_CXX_COMPILER} -I${CMAKE_CURRENT_SOURCE_DIR}/boost/libs/preprocessor/include ${CMAKE_CXX_FLAG_LIST} -S -emit-llvm ${CMAKE_CURRENT_SOURCE_DIR}/src/shader_placeholder.cpp -o ${CMAKE_BINARY_DIR}/shader.ll
COMMAND ${CMAKE_CXX_COMPILER} -I${CMAKE_CURRENT_SOURCE_DIR}/boost/libs/preprocessor/include ${SHADER_COMPILE_FLAGS} -S -emit-llvm ${CMAKE_CURRENT_SOURCE_DIR}/src/shader_placeholder.cpp -o ${CMAKE_BINARY_DIR}/shader.ll
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/function_body_replace.py ${CMAKE_CURRENT_SOURCE_DIR}/shaders/ ${CMAKE_BINARY_DIR}/shader.ll
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src/shader_placeholder.cpp ${CMAKE_CURRENT_SOURCE_DIR}/function_body_replace.py
COMMENT "Generating LLVM IR for shader_placeholder.cpp"
Expand Down

0 comments on commit 5995373

Please sign in to comment.