Skip to content

Commit

Permalink
Include DPC++ libs in compilation of device code.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacault committed Dec 13, 2024
1 parent 9861d41 commit 1923704
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/conformance/device_code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ macro(add_device_binary SOURCE_FILE)
endif()

add_custom_command(OUTPUT ${BIN_PATH}
COMMAND ${UR_DPCXX} -fsycl -fsycl-targets=${TRIPLE} -fsycl-device-code-split=off
${AMD_TARGET_BACKEND} ${AMD_OFFLOAD_ARCH} ${AMD_NOGPULIB}
${DPCXX_BUILD_FLAGS_LIST} ${SOURCE_FILE} -o ${EXE_PATH}
COMMAND LD_LIBRARY_PATH=${UR_SYCL_LIBRARY_DIR}:$ENV{LD_LIBRARY_PATH}
${UR_DPCXX} -fsycl -fsycl-targets=${TRIPLE}
-fsycl-device-code-split=off ${AMD_TARGET_BACKEND}
${AMD_OFFLOAD_ARCH} ${AMD_NOGPULIB} ${DPCXX_BUILD_FLAGS_LIST}
${SOURCE_FILE} -o ${EXE_PATH}

COMMAND ${CMAKE_COMMAND} -E env ${EXTRA_ENV} ${UR_DEVICE_CODE_EXTRACTOR} --stem="${TRIPLE}.bin" ${EXE_PATH}

Expand Down

0 comments on commit 1923704

Please sign in to comment.