File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 2
2
// RUN: clang -c -x hip --offload-arch=gfx900 --offload-arch=gfx1030 \
3
3
// RUN: -nogpulib -nogpuinc \
4
4
// RUN: --gpu-bundle-output --offload-device-only \
5
- // RUN: -fgpu-rdc \
5
+ // RUN: -emit-llvm \
6
6
// RUN: --offload-compress \
7
7
// RUN: %s -o %t.compressed-bundle.bc
8
8
//
Original file line number Diff line number Diff line change 1
1
// Create bitcode bundle
2
2
// RUN: clang -c -x hip --offload-arch=gfx900 --offload-arch=gfx1030 \
3
- // RUN: -nogpulib -nogpuinc \
3
+ // RUN: -nogpulib -nogpuinc -emit-llvm \
4
4
// RUN: --gpu-bundle-output --offload-device-only \
5
- // RUN: -fgpu-rdc \
6
5
// RUN: %s -o %t.bundle.bc
7
6
//
8
7
// Create compressed bitcode bundle (add --offload-compress flag)
9
8
// RUN: clang -c -x hip --offload-arch=gfx900 --offload-arch=gfx1030 \
10
- // RUN: -nogpulib -nogpuinc \
9
+ // RUN: -nogpulib -nogpuinc -emit-llvm \
11
10
// RUN: --gpu-bundle-output --offload-device-only \
12
- // RUN: -fgpu-rdc \
13
11
// RUN: --offload-compress \
14
12
// RUN: %s -o %t.compressed-bundle.bc
15
13
//
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ endmacro()
44
44
macro (add_test_input_bitcode_bundle name input output )
45
45
add_custom_command (
46
46
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
48
48
--gpu-bundle-output ${ARGN} "${CMAKE_CURRENT_SOURCE_DIR} /${input} " -nogpulib -nogpuinc
49
- -o "${output} "
49
+ --offload-device-only - o "${output} "
50
50
VERBATIM
51
51
DEPENDS clang lld "${input} " )
52
52
add_custom_target ("${name} "
You can’t perform that action at this time.
0 commit comments