CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
52 lines
3.3 KiB
C
52 lines
3.3 KiB
C
// Check that we enable LTO-mode properly with '-fopenmp-target-jit' and that it
|
|
// still enabled LTO-mode if `-fno-offload-lto` is on.
|
|
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-phases -fopenmp=libomp \
|
|
// RUN: --offload-arch=sm_52 -fopenmp-target-jit %s 2>&1 \
|
|
// RUN: | FileCheck -check-prefix=PHASES-JIT %s
|
|
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-phases -fopenmp=libomp \
|
|
// RUN: --offload-arch=sm_52 -foffload-lto -fopenmp-target-jit %s 2>&1 \
|
|
// RUN: | FileCheck -check-prefix=PHASES-JIT %s
|
|
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-phases -fopenmp=libomp \
|
|
// RUN: --offload-arch=gfx90a -fopenmp-target-jit %s 2>&1 \
|
|
// RUN: | FileCheck -check-prefix=PHASES-JIT %s
|
|
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-phases -fopenmp=libomp \
|
|
// RUN: --offload-arch=gfx90a -foffload-lto -fopenmp-target-jit %s 2>&1 \
|
|
// RUN: | FileCheck -check-prefix=PHASES-JIT %s
|
|
// RUN: not %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-phases -fopenmp=libomp \
|
|
// RUN: --offload-arch=gfx90a -fno-offload-lto -fopenmp-target-jit %s 2>&1 \
|
|
// RUN: | FileCheck -check-prefix=PHASES-JIT %s
|
|
//
|
|
// PHASES-JIT: 0: input, "[[INPUT:.+]]", c, (host-openmp)
|
|
// PHASES-JIT-NEXT: 1: preprocessor, {0}, cpp-output, (host-openmp)
|
|
// PHASES-JIT-NEXT: 2: compiler, {1}, ir, (host-openmp)
|
|
// PHASES-JIT-NEXT: 3: input, "[[INPUT]]", c, (device-openmp, {{.*}})
|
|
// PHASES-JIT-NEXT: 4: preprocessor, {3}, cpp-output, (device-openmp, {{.*}})
|
|
// PHASES-JIT-NEXT: 5: compiler, {4}, ir, (device-openmp, {{.*}})
|
|
// PHASES-JIT-NEXT: 6: offload, "host-openmp (x86_64-unknown-linux-gnu)" {2}, "device-openmp ([[TARGET:.+]])" {5}, ir
|
|
// PHASES-JIT-NEXT: 7: backend, {6}, lto-bc, (device-openmp, {{.*}})
|
|
// PHASES-JIT-NEXT: 8: offload, "device-openmp ([[TARGET]])" {7}, lto-bc
|
|
// PHASES-JIT-NEXT: 9: llvm-offload-binary, {8}, image, (device-openmp)
|
|
// PHASES-JIT-NEXT: 10: offload, "host-openmp (x86_64-unknown-linux-gnu)" {2}, "device-openmp (x86_64-unknown-linux-gnu)" {9}, ir
|
|
// PHASES-JIT-NEXT: 11: backend, {10}, assembler, (host-openmp)
|
|
// PHASES-JIT-NEXT: 12: assembler, {11}, object, (host-openmp)
|
|
// PHASES-JIT-NEXT: 13: clang-linker-wrapper, {12}, image, (host-openmp)
|
|
|
|
// Check that we add the `--embed-bitcode` flag to the linker wrapper.
|
|
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp \
|
|
// RUN: --cuda-path=%S/Inputs/CUDA_111/usr/local/cuda \
|
|
// RUN: -fopenmp-targets=nvptx64-nvidia-cuda -Xopenmp-target -march=sm_52 \
|
|
// RUN: -fopenmp-target-jit %s 2>&1 | FileCheck -check-prefix=LINKER %s
|
|
// LINKER: clang-linker-wrapper"{{.*}}"--embed-bitcode"
|
|
|
|
// Check for incompatible combinations
|
|
|
|
// RUN: not %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fno-offload-lto \
|
|
// RUN: --offload-arch=sm_52 -fopenmp-target-jit %s 2>&1 \
|
|
// RUN: | FileCheck -check-prefix=NO-LTO %s
|
|
// NO-LTO: error: the combination of '-fno-offload-lto' and '-fopenmp-target-jit' is incompatible
|
|
|
|
// RUN: not %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -foffload-lto=thin \
|
|
// RUN: --offload-arch=sm_52 -fopenmp-targets=nvptx64-nvidia-cuda -fopenmp-target-jit %s 2>&1 \
|
|
// RUN: | FileCheck -check-prefix=THIN-LTO %s
|
|
// THIN-LTO: error: the combination of '-foffload-lto=' and '-fopenmp-target-jit' is incompatible
|