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
36 lines
1.7 KiB
LLVM
36 lines
1.7 KiB
LLVM
; Tests command-line options of clang-sycl-linker that exercise the SPIR-V
|
|
; backend (--spirv-dump-device-code, --save-temps).
|
|
;
|
|
; REQUIRES: spirv-registered-target
|
|
|
|
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64-G1"
|
|
target triple = "spirv64"
|
|
|
|
; Build a bitcode input used by every RUN line below.
|
|
; RUN: llvm-as %s -o %t.bc
|
|
; RUN: rm -rf %t.dir && mkdir -p %t.dir
|
|
|
|
; Test --spirv-dump-device-code: the linker creates the (nested) directory if
|
|
; missing and copies the generated SPIR-V file there. Files are named
|
|
; "<output-stem>_<index>.spv" and shared across split modules.
|
|
; RUN: clang-sycl-linker %t.bc --spirv-dump-device-code=%t.dir/nested -o out.spv
|
|
; RUN: test -f %t.dir/nested/out_0.spv
|
|
|
|
; Test --spirv-dump-device-code with an empty value: expect an error.
|
|
; RUN: not clang-sycl-linker %t.bc --spirv-dump-device-code= -o %t.out 2>&1 \
|
|
; RUN: | FileCheck %s --check-prefix=DUMP-EMPTY-ERR
|
|
; DUMP-EMPTY-ERR: --spirv-dump-device-code= requires a non-empty path
|
|
|
|
; Test --spirv-dump-device-code where the path cannot be created (a regular
|
|
; file blocks it). Expect a clear diagnostic rather than a deeper failure.
|
|
; RUN: rm -rf %t.blocker && touch %t.blocker
|
|
; RUN: not clang-sycl-linker %t.bc --spirv-dump-device-code=%t.blocker/sub -o %t.out 2>&1 \
|
|
; RUN: | FileCheck %s --check-prefix=DUMP-DIR-ERR
|
|
; DUMP-DIR-ERR: cannot create SPIR-V dump directory '{{.*}}.blocker/sub'
|
|
|
|
; Test --save-temps: keeps intermediate .bc files in the current directory, so
|
|
; cd into a scratch dir to make the resulting paths predictable.
|
|
; RUN: mkdir -p %t.dir/save-temps
|
|
; RUN: cd %t.dir/save-temps && clang-sycl-linker %t.bc --save-temps -o out.spv
|
|
; RUN: ls %t.dir/save-temps/out.spv-*.bc
|