/llvm-project/clang/test/Driver/ |
H A D | hip-output-file-name.hip | 2 // RUN: %clang -### -c --target=x86_64-linux-gnu -fgpu-rdc --no-offload-new-driver \ 3 // RUN: -nogpulib -nogpuinc --offload-arch=gfx803 --offload-arch=gfx900 %s \ 6 // CHECK: {{.*}}clang-offload-bundler{{.*}}"-output=hip-output-file-name.o" 9 // If there are multiple preprocessor expansion outputs clang-offload-bundler 13 // RUN: %clang -### -E --target=x86_64-linux-gnu --no-offload-new-driver \ 14 // RUN: -nogpulib -nogpuinc --offload-arch=gfx803 %s \ 18 // RUN: %clang -### -E --offload-device-only --target=x86_64-linux-gnu \ 19 // RUN: --no-offload-new-driver -nogpulib -nogpuinc --offload-arch=gfx803 %s \ 23 // RUN: %clang -### -E --target=x86_64-linux-gnu --no-offload-new-driver \ 24 // RUN: -nogpulib -nogpuinc --offload-arch=gfx803 --offload-arch=gfx900 %s \ [all …]
|
H A D | hip-link-bundle-archive.hip | 9 // RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 \ 10 // RUN: --no-offload-new-driver --target=x86_64-unknown-linux-gnu \ 14 // RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 -nogpuinc \ 15 // RUN: --no-offload-new-driver --target=x86_64-unknown-linux-gnu \ 19 // RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 \ 20 // RUN: --no-offload-new-driver --target=x86_64-unknown-linux-gnu \ 25 // RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 \ 26 // RUN: --no-offload-new-driver --target=x86_64-unknown-linux-gnu \ 33 // RUN: %clang -### --offload-arch=gfx906 --offload-arch=gfx1030 \ 34 // RUN: --no-offload-new-driver --target=x86_64-unknown-linux-gnu \ [all …]
|
H A D | hip-invalid-target-id.hip | 2 // RUN: -x hip --offload-arch=gfx908 \ 3 // RUN: --offload-arch=gfx908xnack \ 10 // RUN: -x hip --offload-arch=gfx900 \ 11 // RUN: --offload-arch=gfx908:xnack+:xnack+ \ 18 // RUN: -x hip --offload-arch=gfx908 \ 19 // RUN: --offload-arch=gfx908:unknown+ \ 20 // RUN: --offload-arch=gfx908+sramecc+unknown \ 21 // RUN: --offload-arch=gfx900+xnack \ 28 // RUN: -x hip --offload-arch=gfx908 \ 29 // RUN: --offload-arch=gfx908:sramecc+:unknown+ \ [all …]
|
H A D | hip-offload-compress-zstd.hip | 7 // RUN: -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 \ 8 // RUN: --no-offload-new-driver -fgpu-rdc -nogpuinc -nogpulib \ 10 // RUN: --offload-compress --offload-compression-level=9 \ 11 // RUN: --offload-device-only --gpu-bundle-output \ 15 // CHECK: clang-offload-bundler{{.*}} -type=bc 23 // RUN: --offload-arch=gfx1100 --offload-arch=gfx1101 \ 24 // RUN: --no-offload-new-driver -fgpu-rdc -nogpulib \ 25 // RUN: %t.bc --offload-device-only \ 28 // UNBUNDLE: clang-offload-bundler{{.*}} "-type=bc" 36 // RUN: -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 \ [all …]
|
H A D | hip-offload-compress-zlib.hip | 7 // RUN: -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 \ 8 // RUN: --no-offload-new-driver -fgpu-rdc -nogpuinc -nogpulib \ 10 // RUN: --offload-compress --offload-compression-level=9 \ 11 // RUN: --offload-device-only --gpu-bundle-output \ 15 // CHECK: clang-offload-bundler{{.*}} -type=bc 23 // RUN: --offload-arch=gfx1100 --offload-arch=gfx1101 \ 24 // RUN: --no-offload-new-driver -fgpu-rdc -nogpulib \ 25 // RUN: %t.bc --offload-device-only \ 28 // UNBUNDLE: clang-offload-bundler{{.*}} "-type=bc" 36 // RUN: -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 \ [all …]
|
H A D | hip-toolchain-features.hip | 1 // RUN: %clang -### --target=x86_64-linux-gnu -fgpu-rdc -nogpulib --no-offload-new-driver \ 2 // RUN: -nogpuinc --offload-arch=gfx906:xnack+ --offload-arch=gfx900:xnack+ %s \ 4 // RUN: %clang -### --target=x86_64-linux-gnu -fgpu-rdc -nogpulib --no-offload-new-driver \ 5 // RUN: -nogpuinc --offload-arch=gfx906:xnack- --offload-arch=gfx900:xnack- %s \ 14 // RUN: -nogpuinc --offload-arch=gfx908:sramecc+ --no-offload-new-driver %s \ 17 // RUN: -nogpuinc --offload-arch=gfx908:sramecc- --no-offload-new-driver %s \ 26 // RUN: -nogpuinc --offload-arch=gfx1010 --no-offload-new-driver %s \ 29 // RUN: -nogpuinc --offload-arch=gfx1010 --no-offload-new-driver %s \ 38 // RUN: -nogpuinc --offload-arch=gfx908:xnack+:sramecc+ --no-offload-new-driver %s \ 41 // RUN: -nogpuinc --offload-arch=gfx908:xnack-:sramecc- --no-offload-new-driver %s \ [all …]
|
H A D | hip-target-id.hip | 3 // RUN: --offload-arch=gfx908:xnack+:sramecc+ \ 4 // RUN: --offload-arch=gfx908:xnack+:sramecc- \ 5 // RUN: --no-offload-new-driver --rocm-path=%S/Inputs/rocm \ 10 // RUN: --offload-arch=gfx908:xnack+:sramecc+ \ 11 // RUN: --offload-arch=gfx908:xnack+:sramecc- \ 13 // RUN: --no-offload-new-driver -save-temps \ 18 // RUN: --offload-arch=gfx908:xnack+:sramecc+ \ 19 // RUN: --offload-arch=gfx908:xnack+:sramecc- \ 21 // RUN: --no-offload-new-driver -fgpu-rdc \ 45 // CHECK: {{"[^"]*clang-offload [all...] |
H A D | hip-macros.hip | 2 // RUN: %clang -E -dM --offload-arch=gfx906 -mwavefrontsize64 \ 5 // RUN: %clang -E -dM --offload-arch=gfx1010 -mwavefrontsize64 \ 8 // RUN: %clang -E -dM --offload-arch=gfx906 -mwavefrontsize64 \ 11 // RUN: %clang -E -dM --offload-arch=gfx1010 -mwavefrontsize64 \ 14 // RUN: %clang -E -dM --offload-arch=gfx906 -mno-wavefrontsize64 \ 17 // RUN: %clang -E -dM --offload-arch=gfx1010 -mno-wavefrontsize64 \ 25 // RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib \ 27 // RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib -mcumode \ 29 // RUN: %clang -E -dM --offload-arch=gfx906 --cuda-device-only -nogpuinc -nogpulib -mno-cumode \ 31 // RUN: %clang -E -dM --offload-arch=gfx1030 --cuda-device-only -nogpuinc -nogpulib \ [all …]
|
H A D | clang-offload-bundler.c | 22 // removes clang-offload-bundler sections, therefore not good for comparison. 43 // RUN: clang-offload-bundler --help | FileCheck %s --check-prefix CK-HELP 48 // CK-HELP: {{.*}}USAGE: clang-offload-bundler [options] 52 // CK-HELP: {{.*}}-hip-openmp-compatible {{.*}}- Treat hip and hipv4 offload kinds as compatible wi… 58 // CK-HELP: {{.*}}-targets=<string> - [<offload kind>-<target triple>,...] 75 // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-… 78 // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-… 81 // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-… 82 // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-… 85 // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-… [all …]
|
H A D | hip-binding.hip | 3 // RUN: --no-offload-new-driver -c 2>&1 | FileCheck -check-prefix=NRDCS %s 4 // RUN: %clang -ccc-print-bindings --target=x86_64-linux-gnu --offload-new-driver \ 6 // RUN: --no-offload-new-driver -c 2>&1 | FileCheck -check-prefix=NRDCS %s 16 // RUN: --no-offload-new-driver -c -fgpu-rdc 2>&1 | FileCheck -check-prefix=RDCS %s 20 // RDCS: # "x86_64-unknown-linux-gnu" - "offload bundler", inputs: ["[[BC1]]", "[[BC2]]", "[[HOSTOB… 22 // RUN: %clang -ccc-print-bindings --target=x86_64-linux-gnu --offload-new-driver \ 27 // RDCS-NEW: # "x86_64-unknown-linux-gnu" - "Offload::Packager", inputs: ["[[HIP803]]", "[[HIP900]]… 32 // RUN: --no-offload-new-driver --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 -fgpu-rdc %t.o\ 35 // CHECK: # "x86_64-unknown-linux-gnu" - "offload bundler", inputs: ["[[IN:.*o]]"], outputs: ["[[HO… 36 // CHECK: # "amdgcn-amd-amdhsa" - "offload bundler", inputs: ["[[IN]]"], outputs: ["{{.*o}}", "[[DO… [all …]
|
H A D | cuda-openmp-driver.cu | 2 // RUN: --offload-new-driver --offload-arch=sm_35 --offload-arch=sm_70 %s 2>&1 \ 9 // BINDINGS-NEXT: "x86_64-unknown-linux-gnu" - "Offload::Packager", inputs: ["[[CUBIN_SM_35]]", "[[… 11 // BINDINGS-NEXT: "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[HOST_OBJ]]"], output:… 14 // RUN: --offload-new-driver --offload-arch=sm_35 --offload-arch=sm_70 %s 2>&1 \ 18 // BINDINGS-HOST: # "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[OUTPUT]]"], output:… 21 // RUN: --offload-new-driver --offload-arch=sm_35 --offload-arch=sm_70 %s 2>&1 \ 27 // RUN: %clang -### -target x86_64-linux-gnu -nocudalib --cuda-feature=+ptx61 --offload-arch=sm_70 … 30 // RUN: %clang -### -target x86_64-linux-gnu -nocudalib -ccc-print-bindings --offload-link %s 2>&1 \ 33 // DEVICE-LINK: "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[INPUT:.+]]"], output: "… 35 // RUN: %clang -### -target x86_64-linux-gnu -nocudalib --offload-new-driver \ [all …]
|
H A D | cuda-external-tools.cu | 6 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 9 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 12 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 15 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 18 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 21 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 25 // RUN: --no-offload-new-driver --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 30 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 35 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ 41 // RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \ [all …]
|
H A D | invalid-offload-options.cpp | 3 // RUN: not %clang -### -x hip --target=x86_64-linux-gnu --offload= \ 6 // RUN: not %clang -### -x hip --target=x86_64-linux-gnu --offload=foo \ 10 // INVALID-TARGET: error: invalid or unsupported offload target: '{{.*}}' 15 // RUN: not %clang -### -x hip --target=x86_64-linux-gnu --offload=foo,bar \ 19 // RUN: --offload=foo --offload=bar \ 23 // TOO-MANY-TARGETS: error: only one offload target is supported 26 // RUN: --offload=amdgcn-amd-amdhsa --offload-arch=gfx900 %s \ 27 // RUN: 2>&1 | FileCheck --check-prefix=OFFLOAD-ARCH-MIX %s 29 // OFFLOAD-ARCH-MIX: error: option '--offload-arch' cannot be specified with '--offload'
|
H A D | cuda-omp-unsupported-debug-options.cu | 3 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -g -gz… 5 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -gdwar… 7 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -gdwar… 9 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -gdwar… 11 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -gdwar… 13 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -gdwar… 15 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -ggdb1… 17 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -ggdb2… 19 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -ggdb3… 21 // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -g -gc… [all …]
|
H A D | hip-sanitize-options.hip | 1 // RUN: %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack+ \ 6 // RUN: %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack+ \ 11 // RUN: %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack+ \ 16 // RUN: %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack+ \ 21 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack+ \ 26 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack- \ 27 // RUN: --offload-arch=gfx900:xnack+ --offload-arch=gfx906 -fsanitize=address -fgpu-sanitize \ 31 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack- \ 32 // RUN: --offload-arch=gfx900:xnack+ --offload-arch=gfx906 -fsanitize=address -fgpu-sanitize \ 40 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack- \ [all …]
|
H A D | lto.cu | 2 // RUN: %clangxx --target=x86_64-unknown-linux-gnu --no-offload-new-driver -nocudainc -nocudalib -c… 9 // RUN: %clangxx --target=x86_64-unknown-linux-gnu --no-offload-new-driver -nocudainc -nocudalib -c… 20 // CHECK-COMPILELINK-ACTIONS: 8: offload, "device-cuda (nvptx{{.*}}-nvidia-cuda:sm_{{.*}})" {7}, ob… 21 // CHECK-COMPILELINK-ACTIONS: 9: offload, "device-cuda (nvptx{{.*}}-nvidia-cuda:sm_{{.*}})" {6}, as… 23 // CHECK-COMPILELINK-ACTIONS: 11: offload, "host-cuda {{.*}}" {2}, "device-cuda{{.*}}" {10}, ir 29 // RUN: %clangxx %s --target=x86_64-unknown-linux-gnu --no-offload-new-driver -nocudainc -nocudalib… 37 // RUN: %clangxx --target=x86_64-unknown-linux-gnu %s --no-offload-new-driver -nocudainc -nocudalib… 42 // RUN: not %clangxx --target=x86_64-unknown-linux-gnu --no-offload-new-driver -nocudainc -nocudali… 47 // RUN: %clangxx -nocudainc -nocudalib --target=x86_64-unknown-linux-gnu --offload-arch=sm_52 --sys… 48 // RUN: --no-offload-new-driver -fuse-ld=bfd -flto=thin -### 2>&1 | FileCheck --check-prefix=LLVM… [all …]
|
H A D | hip-partial-link.hip | 3 // RUN: %clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \ 4 // RUN: --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc \ 7 // RUN: %clang -x hip --target=x86_64-unknown-linux-gnu -DLIB --no-offload-new-driver \ 8 // RUN: --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc \ 11 // RUN: %clang -x hip --target=x86_64-unknown-linux-gnu -DMAIN --no-offload-new-driver \ 12 // RUN: --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc \ 27 // RUN: %clang -v --target=x86_64-unknown-linux-gnu --no-offload-new-driver \ 28 // RUN: --hip-link -fgpu-rdc --offload-arch=gfx906 \ 35 // LD-R: "{{.*}}/clang-offload-bundler" {{.*}}-unbundle 37 // LD-R: "{{.*}}/clang-offload [all...] |
H A D | hip-cuid.hip | 5 // RUN: --no-offload-new-driver \ 6 // RUN: --offload-arch=gfx900 \ 7 // RUN: --offload-arch=gfx906 \ 17 // RUN: --no-offload-new-driver \ 18 // RUN: --offload-arch=gfx900 \ 19 // RUN: --offload-arch=gfx906 \ 29 // RUN: --no-offload-new-driver \ 30 // RUN: --offload-arch=gfx900 \ 31 // RUN: --offload-arch=gfx906 \ 41 // RUN: --no-offload [all...] |
H A D | linker-wrapper.c | 14 // RUN: clang-offload-packager -o %t.out \ 17 // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out 20 // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o %t.o -fembed-offload-object=%t.out 26 // RUN: clang-offload-packager -o %t.out \ 29 // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out 35 // RUN: clang-offload-packager -o %t.out \ 38 // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out 44 // RUN: clang-offload-packager -o %t.out \ 47 // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out 53 // RUN: clang-offload [all...] |
H A D | hip-phases.hip | 10 // RUN: --no-offload-new-driver --cuda-gpu-arch=gfx803 %s 2>&1 \ 13 // RUN: --offload-new-driver --cuda-gpu-arch=gfx803 %s 2>&1 \ 17 // RUN: --no-offload-new-driver --cuda-gpu-arch=gfx803 -fgpu-rdc %s 2>&1 \ 33 // BIN-DAG: [[P9:[0-9]+]]: offload, "device-[[T]] (amdgcn-amd-amdhsa:[[ARCH]])" {[[P8]]}, image 37 // NRD-DAG: [[P11:[0-9]+]]: offload, "host-[[T]] (x86_64-unknown-linux-gnu)" {[[P2]]}, "device-[[T]… 38 // RDC-DAG: [[P11:[0-9]+]]: offload, "device-[[T]] (amdgcn-amd-amdhsa)" {[[P10]]}, object 49 // RUN: --no-offload-new-driver --cuda-gpu-arch=gfx803 %s -S 2>&1 \ 64 // RUN: --no-offload-new-driver --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s 2>&1 \ 68 // RUN: --no-offload-new-driver --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s -c 2>&1 \ 81 // NRD2-DAG: [[P9:[0-9]+]]: offload, "device-[[T]] (amdgcn-amd-amdhsa:[[ARCH1]])" {[[P8]]}, image [all …]
|
H A D | openmp-offload-infer.c | 2 // RUN: -nogpulib --offload-arch=sm_52 --offload-arch=gfx803 \ 15 // RUN: --offload-arch=sm_70 --offload-arch=gfx908:sramecc+:xnack- \ 22 // CHECK-NVIDIA-AMDGPU: "x86_64-unknown-linux-gnu" - "Offload::Packager", inputs: ["[[AMD_BC]]", "[… 24 // CHECK-NVIDIA-AMDGPU: "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[HOST_OBJ]]"], o… 27 // RUN: --offload-arch=sm_52 --offload-arch=sm_70 -nogpulib %s 2>&1 | FileCheck %s --check-pref… 34 // CHECK-ARCH-BINDINGS: "x86_64-unknown-linux-gnu" - "Offload::Packager", inputs: ["[[DEVICE_OBJ_SM… 36 // CHECK-ARCH-BINDINGS: "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[HOST_OBJ]]"], o… 39 // RUN: --offload-arch=sm_70 --offload-arch=gfx908 --offload-arch=skylake \ 45 // RUN: --offload-arch=sm_70 --offload-arch=gfx908 -fno-openmp \
|
H A D | amdgpu-hip-system-arch.c | 13 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu -nogpulib --offload-arch=native --amdgpu-arch-tool=%t/amdgpu_arch_fail -x hip %s 2>&1 \ 15 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu -nogpulib --offload-new-driver --offload-arch=native --amdgpu-arch-tool=%t/amdgpu_arch_fail -x hip %s 2>&1 \ 17 // NO-OUTPUT-ERROR: error: cannot determine amdgcn architecture{{.*}}; consider passing it via '--offload-arch' 20 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu -nogpulib --offload-arch=native --amdgpu-arch-tool=%t/amdgpu_arch_empty -x hip %s 2>&1 \ 22 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu -nogpulib --offload-new-driver --offload-arch=native --amdgpu-arch-tool=%t/amdgpu_arch_empty -x hip %s 2>&1 \ 24 // EMPTY-OUTPUT: error: cannot determine amdgcn architecture: No AMD GPU detected in the system; consider passing it via '--offload-arch' 27 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpuinc -nogpulib --offload-arch=native --amdgpu-arch-tool=%t/amdgpu_arch_gfx906 -x hip %s 2>&1 \ 29 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpuinc -nogpulib --offload [all...] |
/llvm-project/flang/test/Driver/ |
H A D | omp-driver-offload.f90 | 1 ! Test that flang OpenMP and OpenMP offload related 9 ! Test regular -fopenmp with no offload 14 ! Test regular -fopenmp with offload, and invocation filtering options 16 ! RUN: -fopenmp --offload-arch=gfx90a --offload-arch=sm_70 \ 18 ! RUN: | FileCheck %s --check-prefix=OFFLOAD-HOST-AND-DEVICE 21 ! RUN: -fopenmp --offload-arch=gfx90a --offload-arch=sm_70 --offload-host-device \ 23 ! RUN: | FileCheck %s --check-prefix=OFFLOAD [all...] |
/llvm-project/openmp/runtime/src/include/ |
H A D | omp_lib.h.var | 1019 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_set_num_threads 1020 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_set_dynamic 1021 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_set_nested 1022 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_get_num_threads 1023 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_get_max_threads 1024 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_get_thread_num 1025 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_get_num_procs 1026 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_in_parallel 1027 !DIR$ ATTRIBUTES OFFLOAD:MIC :: omp_in_final 1028 !DIR$ ATTRIBUTES OFFLOAD [all...] |
/llvm-project/clang/docs/ |
H A D | ClangOffloadBundler.rst | 2 Clang Offload Bundler 8 .. _clang-offload-bundler: 14 ``--offload-arch=<target-id>`` Clang options to specify the target IDs of the 15 code to generate for the offload code regions. 19 devices. The ``clang-offload-bundler`` tool may be used as part of the tool 25 for the host and all the offload devices. 30 offload kind (see :ref:`clang-offload-kind-table`) to load the offload code 33 :program:`clang-offload [all...] |