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
112 lines
5.3 KiB
C
112 lines
5.3 KiB
C
// Test the that the driver produces reasonable linker invocations with
|
|
// -fopenmp or -fopenmp|libgomp.
|
|
//
|
|
// FIXME: Replace DEFAULT_OPENMP_LIB below with the value chosen at configure time.
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp -target i386-unknown-linux -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-32 %s
|
|
// CHECK-LD-32: "{{.*}}ld{{(.exe)?}}"
|
|
// CHECK-LD-32: "-l[[DEFAULT_OPENMP_LIB:[^"]*]]"
|
|
// CHECK-LD-32: "-lpthread" "-lc"
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp -target x86_64-unknown-linux -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-64 %s
|
|
// CHECK-LD-64: "{{.*}}ld{{(.exe)?}}"
|
|
// CHECK-LD-64: "-l[[DEFAULT_OPENMP_LIB:[^"]*]]"
|
|
// CHECK-LD-64: "-lpthread" "-lc"
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp=libgomp -target i386-unknown-linux -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-GOMP-LD-32 %s
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 -fopenmp-simd -target i386-unknown-linux -rtlib=platform --unwindlib=platform | FileCheck --check-prefix SIMD-ONLY2 %s
|
|
// SIMD-ONLY2-NOT: lgomp
|
|
// SIMD-ONLY2-NOT: lomp
|
|
// SIMD-ONLY2-NOT: liomp
|
|
// CHECK-GOMP-LD-32: "{{.*}}ld{{(.exe)?}}"
|
|
// CHECK-GOMP-LD-32: "-lgomp" "-lrt"
|
|
// CHECK-GOMP-LD-32: "-lpthread" "-lc"
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 -fopenmp-simd -target i386-unknown-linux -rtlib=platform --unwindlib=platform | FileCheck --check-prefix SIMD-ONLY2 %s
|
|
// SIMD-ONLY2-NOT: lgomp
|
|
// SIMD-ONLY2-NOT: lomp
|
|
// SIMD-ONLY2-NOT: liomp
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp=libgomp -target x86_64-unknown-linux -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-GOMP-LD-64 %s
|
|
// CHECK-GOMP-LD-64: "{{.*}}ld{{(.exe)?}}"
|
|
// CHECK-GOMP-LD-64: "-lgomp" "-lrt"
|
|
// CHECK-GOMP-LD-64: "-lpthread" "-lc"
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp -target i386-unknown-linux -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-IOMP5-LD-32 %s
|
|
// CHECK-IOMP5-LD-32: "{{.*}}ld{{(.exe)?}}"
|
|
// CHECK-IOMP5-LD-32: "-l[[DEFAULT_OPENMP_LIB:[^"]*]]"
|
|
// CHECK-IOMP5-LD-32: "-lpthread" "-lc"
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp -target x86_64-unknown-linux -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-IOMP5-LD-64 %s
|
|
// CHECK-IOMP5-LD-64: "{{.*}}ld{{(.exe)?}}"
|
|
// CHECK-IOMP5-LD-64: "-l[[DEFAULT_OPENMP_LIB:[^"]*]]"
|
|
// CHECK-IOMP5-LD-64: "-lpthread" "-lc"
|
|
//
|
|
// RUN: not %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp=lib -target i386-unknown-linux \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LIB-LD-32 %s
|
|
// CHECK-LIB-LD-32: error: unsupported argument 'lib' to option '-fopenmp='
|
|
//
|
|
// RUN: not %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp=lib -target x86_64-unknown-linux \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LIB-LD-64 %s
|
|
// CHECK-LIB-LD-64: error: unsupported argument 'lib' to option '-fopenmp='
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp -fopenmp=libgomp -target i386-unknown-linux \
|
|
// RUN: -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-OVERRIDE-32 %s
|
|
// CHECK-LD-OVERRIDE-32: "{{.*}}ld{{(.exe)?}}"
|
|
// CHECK-LD-OVERRIDE-32: "-lgomp" "-lrt"
|
|
// CHECK-LD-OVERRIDE-32: "-lpthread" "-lc"
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp -fopenmp=libgomp -target x86_64-unknown-linux \
|
|
// RUN: -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-LD-OVERRIDE-64 %s
|
|
// CHECK-LD-OVERRIDE-64: "{{.*}}ld{{(.exe)?}}"
|
|
// CHECK-LD-OVERRIDE-64: "-lgomp" "-lrt"
|
|
// CHECK-LD-OVERRIDE-64: "-lpthread" "-lc"
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes -fuse-ld=link %s -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp=libomp -target x86_64-msvc-win32 -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-MSVC-LINK-64 %s
|
|
// CHECK-MSVC-LINK-64: link.exe
|
|
// CHECK-MSVC-LINK-64-SAME: -nodefaultlib:vcomp.lib
|
|
// CHECK-MSVC-LINK-64-SAME: -nodefaultlib:vcompd.lib
|
|
// CHECK-MSVC-LINK-64-SAME: -libpath:{{.+}}/../lib
|
|
// CHECK-MSVC-LINK-64-SAME: -defaultlib:libomp.lib
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 -fopenmp-simd -target x86_64-msvc-win32 -rtlib=platform --unwindlib=platform | FileCheck --check-prefix SIMD-ONLY11 %s
|
|
// SIMD-ONLY11-NOT: libiomp
|
|
// SIMD-ONLY11-NOT: libomp
|
|
// SIMD-ONLY11-NOT: libgomp
|
|
//
|
|
// RUN: %clang -no-canonical-prefixes %s -fuse-ld=link -### -o %t.o 2>&1 \
|
|
// RUN: -fopenmp=libiomp5 -target x86_64-msvc-win32 -rtlib=platform --unwindlib=platform \
|
|
// RUN: | FileCheck --check-prefix=CHECK-MSVC-ILINK-64 %s
|
|
|
|
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 -fopenmp-simd -target x86_64-msvc-win32 -rtlib=platform --unwindlib=platform | FileCheck --check-prefix SIMD-ONLY11 %s
|
|
// SIMD-ONLY11-NOT: libiomp
|
|
// SIMD-ONLY11-NOT: libomp
|
|
// SIMD-ONLY11-NOT: libgomp
|
|
// CHECK-MSVC-ILINK-64: link.exe
|
|
// CHECK-MSVC-ILINK-64-SAME: -nodefaultlib:vcomp.lib
|
|
// CHECK-MSVC-ILINK-64-SAME: -nodefaultlib:vcompd.lib
|
|
// CHECK-MSVC-ILINK-64-SAME: -libpath:{{.+}}/../lib
|
|
// CHECK-MSVC-ILINK-64-SAME: -defaultlib:libiomp5md.lib
|
|
//
|