Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/hip-toolchain-rdc.hip
// REQUIRES: clang-driver | // REQUIRES: clang-driver | ||||
// REQUIRES: x86-registered-target | // REQUIRES: x86-registered-target | ||||
// REQUIRES: amdgpu-registered-target | // REQUIRES: amdgpu-registered-target | ||||
// RUN: %clang -### -target x86_64-linux-gnu \ | // RUN: %clang -### -target x86_64-linux-gnu \ | ||||
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ | // RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ | ||||
// RUN: --hip-device-lib=lib1.bc --hip-device-lib=lib2.bc \ | // RUN: --hip-device-lib=lib1.bc --hip-device-lib=lib2.bc \ | ||||
// RUN: --hip-device-lib-path=%S/Inputs/hip_multiple_inputs/lib1 \ | // RUN: --hip-device-lib-path=%S/Inputs/hip_multiple_inputs/lib1 \ | ||||
// RUN: --hip-device-lib-path=%S/Inputs/hip_multiple_inputs/lib2 \ | // RUN: --hip-device-lib-path=%S/Inputs/hip_multiple_inputs/lib2 \ | ||||
// RUN: -fuse-ld=lld -fgpu-rdc -nogpuinc \ | // RUN: -fuse-ld=lld -fgpu-rdc -nogpuinc \ | ||||
// RUN: -fhip-dump-offload-linker-script \ | // RUN: -fhip-dump-offload-linker-script \ | ||||
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \ | // RUN: %S/Inputs/hip_multiple_inputs/a.cu \ | ||||
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \ | // RUN: %S/Inputs/hip_multiple_inputs/b.hip \ | ||||
// RUN: 2>&1 | FileCheck %s | // RUN: 2>&1 | FileCheck %s | ||||
// check code object alignment in dumped llvm-mc input | // check code object alignment in dumped llvm-mc input | ||||
// CHECK: .protected __hip_fatbin | |||||
// CHECK: .p2align 12 | // CHECK: .p2align 12 | ||||
// emit objects for host side path | // emit objects for host side path | ||||
// CHECK: [[CLANG:".*clang.*"]] "-cc1" "-triple" "x86_64-unknown-linux-gnu" | // CHECK: [[CLANG:".*clang.*"]] "-cc1" "-triple" "x86_64-unknown-linux-gnu" | ||||
// CHECK-SAME: "-aux-triple" "amdgcn-amd-amdhsa" | // CHECK-SAME: "-aux-triple" "amdgcn-amd-amdhsa" | ||||
// CHECK-SAME: "-emit-obj" | // CHECK-SAME: "-emit-obj" | ||||
// CHECK-SAME: {{.*}} "-main-file-name" "a.cu" | // CHECK-SAME: {{.*}} "-main-file-name" "a.cu" | ||||
// CHECK-SAME: "-fgpu-rdc" | // CHECK-SAME: "-fgpu-rdc" | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |