Files
TheRock/compiler/amd-llvm/clang/test/Driver/hipspv-toolchain-rdc-separate.hip
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

67 lines
2.9 KiB
Plaintext

// UNSUPPORTED: system-windows
// RUN: %clang -### -x hip -target x86_64-linux-gnu \
// RUN: --offload=spirv64-unknown-chipstar --offload-new-driver -fgpu-rdc -c \
// RUN: --hip-path=%S/Inputs/hipspv -nohipwrapperinc \
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
// RUN: 2>&1 | FileCheck \
// RUN: -DHIP_PATH=%S/Inputs/hipspv %s
// CHECK: [[CLANG:".*clang[^ ]*"]] "-cc1" "-triple" "spirv64-unknown-chipstar"
// CHECK-SAME: "-aux-triple" "[[HOST_TRIPLE:[^ ]*]]"
// CHECK-SAME: "-emit-llvm-bc"
// CHECK-SAME: "-fcuda-is-device"
// CHECK-SAME: "-fvisibility=hidden" "-fapply-global-visibility-to-externs"
// CHECK-SAME: "-mlink-builtin-bitcode" "[[HIP_PATH]]/lib/hip-device-lib/hipspv-spirv64-unknown-chipstar.bc"
// CHECK-SAME: "-fgpu-rdc"
// CHECK-SAME: "-o" "[[A_DEV_BC:.*bc]]" "-x" "hip"
// CHECK-SAME: "[[A_SRC:.*a.cu]]"
// CHECK: "{{.*llvm-offload-binary[^ ]*}}" "-o" "[[A_BIN_PACKAGE:.*.out]]"
// CHECK-SAME: "--image=file=[[A_DEV_BC]],triple=spirv64-unknown-chipstar,arch=generic,kind=hip"
// CHECK: [[CLANG]] "-cc1" "-triple" "[[HOST_TRIPLE]]"
// CHECK-SAME: "-aux-triple" "spirv64-unknown-chipstar"
// CHECK-SAME: "-emit-obj"
// CHECK-SAME: "-fgpu-rdc"
// CHECK-SAME: "-fembed-offload-object=[[A_BIN_PACKAGE]]"
// CHECK-SAME: "-o" "[[A_HOST_OBJ:.*o]]" "-x" "hip" "[[A_SRC]]"
// CHECK: [[CLANG]] "-cc1" "-triple" "spirv64-unknown-chipstar"
// CHECK-SAME: "-aux-triple" "[[HOST_TRIPLE]]"
// CHECK-SAME: "-emit-llvm-bc"
// CHECK-SAME: "-fcuda-is-device"
// CHECK-SAME: "-fvisibility=hidden" "-fapply-global-visibility-to-externs"
// CHECK-SAME: "-mlink-builtin-bitcode" "[[HIP_PATH]]/lib/hip-device-lib/hipspv-spirv64-unknown-chipstar.bc"
// CHECK-SAME: "-fgpu-rdc"
// CHECK-SAME: "-o" "[[B_DEV_BC:.*bc]]" "-x" "hip"
// CHECK-SAME: "[[B_SRC:.*b.hip]]"
// CHECK: "{{.*llvm-offload-binary[^ ]*}}" "-o" "[[B_BIN_PACKAGE:.*.out]]"
// CHECK-SAME: "--image=file=[[B_DEV_BC]],triple=spirv64-unknown-chipstar,arch=generic,kind=hip"
// CHECK: [[CLANG]] "-cc1" "-triple" "[[HOST_TRIPLE]]"
// CHECK-SAME: "-aux-triple" "spirv64-unknown-chipstar"
// CHECK-SAME: "-emit-obj"
// CHECK-SAME: "-fgpu-rdc"
// CHECK-SAME: "-fembed-offload-object=[[B_BIN_PACKAGE]]"
// CHECK-SAME: "-o" "[[B_HOST_OBJ:.*o]]" "-x" "hip"
// CHECK-SAME: "[[B_SRC]]"
// RUN: rm -rf %t && mkdir %t
// RUN: touch %t/a.o %t/b.o
// RUN: %clang -### -target x86_64-linux-gnu --offload-new-driver -fgpu-rdc \
// RUN: -Xoffload-compiler-spirv64-unknown-chipstar \
// RUN: --hip-path=%S/Inputs/hipspv \
// RUN: -no-hip-rt %t/a.o %t/b.o \
// RUN: 2>&1 | FileCheck -check-prefixes=LINK \
// RUN: -DHIP_PATH=%S/Inputs/hipspv %s
// LINK: "{{.*clang-linker-wrapper[^ ]*}}"
// LINK-SAME: "--host-triple=x86_64-unknown-linux-gnu"
// LINK-SAME: "--device-compiler=spirv64-unknown-chipstar=--hip-path=[[HIP_PATH]]"
// LINK-SAME: "-o" "a.out"
// LINK-SAME: "{{.*a[.]o}}" "{{.*b[.]o}}"
// LINK-NOT: -lamdhip64