From 97b7aa85fe3dcb1fe90ba56e41167e12978fbd16 Mon Sep 17 00:00:00 2001 From: Isaac Ault Date: Fri, 13 Dec 2024 10:15:27 +0000 Subject: [PATCH] Include DPC++ libs in compilation of device code. --- test/conformance/device_code/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/conformance/device_code/CMakeLists.txt b/test/conformance/device_code/CMakeLists.txt index 1621b01544..7a882c06df 100644 --- a/test/conformance/device_code/CMakeLists.txt +++ b/test/conformance/device_code/CMakeLists.txt @@ -109,7 +109,7 @@ 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 + COMMAND LD_LIBRARY_PATH=${UR_SYCL_LIBRARY_DIR}:$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}