Skip to content

Commit 299b253

Browse files
authored
[Comgr] Switch fgpu-rdc to emit-llvm
1 parent 0ed06a7 commit 299b253

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

amd/comgr/test-lit/cache-tests/unbundle-test-cached.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: clang -c -x hip --offload-arch=gfx900 --offload-arch=gfx1030 \
33
// RUN: -nogpulib -nogpuinc \
44
// RUN: --gpu-bundle-output --offload-device-only \
5-
// RUN: -fgpu-rdc \
5+
// RUN: -emit-llvm \
66
// RUN: --offload-compress \
77
// RUN: %s -o %t.compressed-bundle.bc
88
//

amd/comgr/test-lit/unbundle-test.hip

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// Create bitcode bundle
22
// RUN: clang -c -x hip --offload-arch=gfx900 --offload-arch=gfx1030 \
3-
// RUN: -nogpulib -nogpuinc \
3+
// RUN: -nogpulib -nogpuinc -emit-llvm \
44
// RUN: --gpu-bundle-output --offload-device-only \
5-
// RUN: -fgpu-rdc \
65
// RUN: %s -o %t.bundle.bc
76
//
87
// Create compressed bitcode bundle (add --offload-compress flag)
98
// RUN: clang -c -x hip --offload-arch=gfx900 --offload-arch=gfx1030 \
10-
// RUN: -nogpulib -nogpuinc \
9+
// RUN: -nogpulib -nogpuinc -emit-llvm \
1110
// RUN: --gpu-bundle-output --offload-device-only \
12-
// RUN: -fgpu-rdc \
1311
// RUN: --offload-compress \
1412
// RUN: %s -o %t.compressed-bundle.bc
1513
//

amd/comgr/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ endmacro()
4444
macro(add_test_input_bitcode_bundle name input output)
4545
add_custom_command(
4646
OUTPUT "${output}"
47-
COMMAND "$<TARGET_FILE:clang>" -c --offload-arch=gfx900 -emit-llvm -fgpu-rdc
47+
COMMAND "$<TARGET_FILE:clang>" -c --offload-arch=gfx900 -emit-llvm
4848
--gpu-bundle-output ${ARGN} "${CMAKE_CURRENT_SOURCE_DIR}/${input}" -nogpulib -nogpuinc
49-
-o "${output}"
49+
--offload-device-only -o "${output}"
5050
VERBATIM
5151
DEPENDS clang lld "${input}")
5252
add_custom_target("${name}"

0 commit comments

Comments
 (0)