From: Jonas Hahnfeld Date: Tue, 21 Nov 2017 15:06:28 +0000 (+0000) Subject: Add target triples to openmp-offload-gpu.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9219a222c2a4a8b48d2dfe9b28def8d493c7fac;p=clang Add target triples to openmp-offload-gpu.c This might fix the failure on Green Dragon. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318767 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/openmp-offload-gpu.c b/test/Driver/openmp-offload-gpu.c index ad53f96112..16c321b9f4 100644 --- a/test/Driver/openmp-offload-gpu.c +++ b/test/Driver/openmp-offload-gpu.c @@ -47,7 +47,8 @@ /// Check unbundlink of assembly file, cubin file generation and usage by nvlink // RUN: touch %t.s -// RUN: %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda -save-temps %t.s 2>&1 \ +// RUN: %clang -### -target powerpc64le-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \ +// RUN: -no-canonical-prefixes -save-temps %t.s 2>&1 \ // RUN: | FileCheck -check-prefix=CHK-UNBUNDLING-PTXAS-CUBIN-NVLINK %s /// Use DAG to ensure that assembly file has been unbundled. @@ -59,7 +60,8 @@ /// ########################################################################### /// Check cubin file generation and bundling -// RUN: %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda -save-temps %s -c 2>&1 \ +// RUN: %clang -### -target powerpc64le-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \ +// RUN: -no-canonical-prefixes -save-temps %s -c 2>&1 \ // RUN: | FileCheck -check-prefix=CHK-PTXAS-CUBIN-BUNDLING %s // CHK-PTXAS-CUBIN-BUNDLING: clang{{.*}}" "-o" "[[PTX:.*\.s]]" @@ -70,7 +72,8 @@ /// Check cubin file unbundling and usage by nvlink // RUN: touch %t.o -// RUN: %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda -save-temps %t.o 2>&1 \ +// RUN: %clang -### -target powerpc64le-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \ +// RUN: -no-canonical-prefixes -save-temps %t.o 2>&1 \ // RUN: | FileCheck -check-prefix=CHK-CUBIN-UNBUNDLING-NVLINK %s /// Use DAG to ensure that cubin file has been unbundled.