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
45 lines
2.0 KiB
C
45 lines
2.0 KiB
C
// clang-format off
|
|
// COM: Test HotSwap rewrite API
|
|
|
|
// COM: Create a minimal test ELF file (ELF64 header only, no sections).
|
|
// RUN: printf '\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00' > %t.elf
|
|
|
|
// COM: NULL-argument validation (no args)
|
|
// RUN: hotswap-rewrite | %FileCheck --check-prefix=NULL %s
|
|
// NULL: NULL_ARGS: INVALID_ARGUMENT
|
|
|
|
// COM: Options API validation
|
|
// RUN: hotswap-rewrite %t.elf amdgcn-amd-amdhsa--gfx1250 amdgcn-amd-amdhsa--gfx1250 \
|
|
// RUN: --bad-options-size --expect-status INVALID_ARGUMENT \
|
|
// RUN: | %FileCheck --check-prefix=BADOPTIONS %s
|
|
// RUN: hotswap-rewrite %t.elf amdgcn-amd-amdhsa--gfx1250 amdgcn-amd-amdhsa--gfx1250 \
|
|
// RUN: --bad-options-flags --expect-status INVALID_ARGUMENT \
|
|
// RUN: | %FileCheck --check-prefix=BADOPTIONS %s
|
|
// BADOPTIONS: RESULT: INVALID_ARGUMENT
|
|
|
|
// COM: Unsupported ISA pair
|
|
// RUN: hotswap-rewrite %t.elf amdgcn-amd-amdhsa--gfx942 amdgcn-amd-amdhsa--gfx942 \
|
|
// RUN: | %FileCheck --check-prefix=INVALID %s
|
|
// INVALID: RESULT: INVALID_ARGUMENT
|
|
|
|
// COM: Invalid ISA string
|
|
// RUN: hotswap-rewrite %t.elf not-a-valid-isa also-not-valid \
|
|
// RUN: | %FileCheck --check-prefix=BADISA %s
|
|
// BADISA: RESULT: INVALID_ARGUMENT
|
|
|
|
// COM: Zero-size input with supported ISA
|
|
// RUN: hotswap-rewrite %t.elf amdgcn-amd-amdhsa--gfx1250 amdgcn-amd-amdhsa--gfx1250 --zero-size \
|
|
// RUN: | %FileCheck --check-prefix=ZEROSIZE %s
|
|
// ZEROSIZE: RESULT: INVALID_ARGUMENT
|
|
|
|
// COM: Supported GFX1250 pair on a malformed ELF (no .text section).
|
|
// COM: retargetCodeObject rejects inputs that fail ELF64 parsing or have
|
|
// COM: an empty .text section with INVALID_ARGUMENT -- returning SUCCESS with
|
|
// COM: an unchanged copy there would silently hide caller-side bugs.
|
|
// RUN: hotswap-rewrite %t.elf amdgcn-amd-amdhsa--gfx1250 amdgcn-amd-amdhsa--gfx1250 \
|
|
// RUN: | %FileCheck --check-prefix=MALFORMED %s
|
|
// MALFORMED: RESULT: INVALID_ARGUMENT
|
|
|
|
// COM: End-to-end coverage on real gfx1250 code objects is covered by
|
|
// COM: hotswap-rewrite-e2e.hip and hotswap-kernel-entry-trampoline.s.
|