From 15e5e6364d9500a36ae253880eb36c3bc5d24ba0 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 28 Apr 2020 13:46:01 -0400 Subject: [PATCH] Use -nogpulib in another place Change-Id: I9cc1daa7db7d1f2ff07a0dbfb403dbf41f4bbffb [ROCm/ROCR-Runtime commit: 2e73d52ac693f29c7079a52cdad4ade1ec70d6c6] --- projects/rocr-runtime/rocrtst/samples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/rocrtst/samples/CMakeLists.txt b/projects/rocr-runtime/rocrtst/samples/CMakeLists.txt index 0245e3ad57..e165f2ae6d 100755 --- a/projects/rocr-runtime/rocrtst/samples/CMakeLists.txt +++ b/projects/rocr-runtime/rocrtst/samples/CMakeLists.txt @@ -248,7 +248,7 @@ function(process_sample S_NAME TARG_DEV HAS_KERNEL) if (${HAS_KERNEL}) # Build the kernel separate_arguments(CLANG_ARG_LIST UNIX_COMMAND - "-x cl -target amdgcn-amd-amdhsa -include ${OPENCL_INC_DIR}opencl-c.h -mcpu=${TARG_DEV} -mno-code-object-v3 ${BITCODE_LIBS} -cl-std=CL${OPENCL_VER} ${CL_FILE_LIST} -o ${KERNEL_DIR}/${SNAME_KERNEL}") + "-x cl -target amdgcn-amd-amdhsa -Xclang -finclude-default-header -nogpulib -mcpu=${TARG_DEV} -mno-code-object-v3 ${BITCODE_LIBS} -cl-std=CL${OPENCL_VER} ${CL_FILE_LIST} -o ${KERNEL_DIR}/${SNAME_KERNEL}") add_custom_target("${TARG_NAME}" ${CLANG} ${CLANG_ARG_LIST} COMMAND ${CMAKE_COMMAND} -E create_symlink "../${SNAME_EXE}" "${KERNEL_DIR}/${SNAME_EXE}"