2019-02-14 00:12:16 +08:00
|
|
|
// REQUIRES: clang-driver
|
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
|
|
|
|
// RUN: %clang -### -c -target x86_64-linux-gnu -fgpu-rdc \
|
|
|
|
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
|
|
|
|
// RUN: -mxnack 2>&1 | FileCheck %s -check-prefix=XNACK
|
|
|
|
// RUN: %clang -### -c -target x86_64-linux-gnu -fgpu-rdc \
|
|
|
|
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
|
|
|
|
// RUN: -mno-xnack 2>&1 | FileCheck %s -check-prefix=NOXNACK
|
|
|
|
|
|
|
|
// XNACK: {{.*}}clang{{.*}}"-target-feature" "+xnack"
|
|
|
|
// NOXNACK: {{.*}}clang{{.*}}"-target-feature" "-xnack"
|
|
|
|
|
|
|
|
|
|
|
|
// RUN: %clang -### -c -target x86_64-linux-gnu -fgpu-rdc \
|
|
|
|
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
|
|
|
|
// RUN: -msram-ecc 2>&1 | FileCheck %s -check-prefix=SRAM
|
|
|
|
// RUN: %clang -### -c -target x86_64-linux-gnu -fgpu-rdc \
|
|
|
|
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
|
|
|
|
// RUN: -mno-sram-ecc 2>&1 | FileCheck %s -check-prefix=NOSRAM
|
|
|
|
|
|
|
|
// SRAM: {{.*}}clang{{.*}}"-target-feature" "+sram-ecc"
|
|
|
|
// NOSRAM: {{.*}}clang{{.*}}"-target-feature" "-sram-ecc"
|
|
|
|
|
|
|
|
|
|
|
|
// RUN: %clang -### -c -target x86_64-linux-gnu -fgpu-rdc \
|
|
|
|
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
|
2019-03-01 01:08:26 +08:00
|
|
|
// RUN: -mxnack -msram-ecc \
|
2019-02-14 00:12:16 +08:00
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=ALL3
|
|
|
|
// RUN: %clang -### -c -target x86_64-linux-gnu -fgpu-rdc \
|
|
|
|
// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
|
2019-03-01 01:08:26 +08:00
|
|
|
// RUN: -mno-xnack -mno-sram-ecc \
|
2019-02-14 00:12:16 +08:00
|
|
|
// RUN: 2>&1 | FileCheck %s -check-prefix=NOALL3
|
|
|
|
|
2019-03-01 01:08:26 +08:00
|
|
|
// ALL3: {{.*}}clang{{.*}}"-target-feature" "+xnack" "-target-feature" "+sram-ecc"
|
|
|
|
// NOALL3: {{.*}}clang{{.*}}"-target-feature" "-xnack" "-target-feature" "-sram-ecc"
|