Reproduce
aorta sweep run --recipe recipes/sanitizers/daily-consan-tiny.yamlSet ROCJITSU_PREBUILT (unpacked rocjitsu bundle supplying rj_waitcheck and the ConSan hook) before running. aorta sets HSA_TOOLS_LIB, HSA_TOOLS_DISABLE_REGISTER, RJ_CONSAN_MODE, RJ_CONSAN_POLICY for you from the recipe's policy block.
Rebuild the fixtures
fixtures/isa/tiny.hsaco
a gfx code object built from fixtures/kernels/tiny_vecadd.hip
export PATH="$(python -c "from aorta.instrumentation.rocm_paths import resolve_rocm_roots; print(resolve_rocm_roots().llvm_bin_dir)"):${PATH}"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}$(python -c "import os; from aorta.instrumentation.rocm_paths import resolve_rocm_roots as r; x = r(); print(os.pathsep.join(dict.fromkeys([str(x.core_lib_dir), str(x.lib_dir)])))")"
mkdir -p recipes/sanitizers/fixtures/isa
hipcc --genco --offload-arch=gfx950 recipes/sanitizers/fixtures/kernels/tiny_vecadd.hip -o tmp.o
if head -c 24 tmp.o | grep -qF __CLANG_OFFLOAD_BUNDLE__; then clang-offload-bundler --type=o --unbundle --input=tmp.o --targets=hipv4-amdgcn-amd-amdhsa--gfx950 --output=recipes/sanitizers/fixtures/isa/tiny.hsaco; else cp tmp.o recipes/sanitizers/fixtures/isa/tiny.hsaco; fi && rm -f tmp.oThe conditional matters: --genco emits a raw code object on some ROCm builds and a clang-offload bundle on others, and the recorded digest is of the unbundled object.
fixtures/bin/consan_tiny_load
a host repro binary built from fixtures/kernels/consan_load.hip
export PATH="$(python -c "from aorta.instrumentation.rocm_paths import resolve_rocm_roots; print(resolve_rocm_roots().llvm_bin_dir)"):${PATH}"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}$(python -c "import os; from aorta.instrumentation.rocm_paths import resolve_rocm_roots as r; x = r(); print(os.pathsep.join(dict.fromkeys([str(x.core_lib_dir), str(x.lib_dir)])))")"
mkdir -p recipes/sanitizers/fixtures/bin
hipcc --offload-arch=gfx950 -DOBJECT="\"$(pwd)/recipes/sanitizers/fixtures/isa/tiny.hsaco\"" recipes/sanitizers/fixtures/kernels/consan_load.hip -o recipes/sanitizers/fixtures/bin/consan_tiny_loadThe -DOBJECT define is required: it is how the binary learns which code object to load.
The exact invocations the nightly used are in .github/workflows/sanitizers-nightly.yml.
Artifacts not published
| Path | SHA-256 |
|---|---|
| fixtures/isa/tiny.hsaco | 5159d89010b27fa513b28e88ff57d4eea279cc221f90dd3567f48e857f56a256 |
| fixtures/bin/consan_tiny_load | d110a697d5866e8aedc0b2475ff3437719e1de59836432436ee11862bdaf4f75 |
Recorded digests
| Key | Value |
|---|---|
| code_object:tiny.hsaco | 5159d89010b27fa513b28e88ff57d4eea279cc221f90dd3567f48e857f56a256 |
| command | /workspace/aorta/recipes/sanitizers/fixtures/bin/consan_tiny_load |
| command_sha256 | d110a697d5866e8aedc0b2475ff3437719e1de59836432436ee11862bdaf4f75 |
| hook | /workspace/aorta/.sanitizer-nightly/rocjitsu-prebuilt/lib/librocjitsu_dbi_hooks.so |
| hook_sha256 | 218f0ad3835f7c5a4c74287a68168893e3488f3c8f23e72e372a891f1b20e0fc |
| selected_identity_sha256 | 39bfcae187ce82c71092098c4fb09483781e232c078601fbc11d745c9ca6e78a |
| selected_kernel | tiny_vecadd |
Every file published for this case. Logs are gzipped. It is not the whole recipe: 2 required inputs are CI-built and excluded by design, listed under artifacts not published with their SHA-256s.
| File | Size |
|---|---|
| REPRODUCE.md | 4.7 KB |
| consan/consan.log.gz | 3.2 KB |
| env.json | 4.7 KB |
| inputs/fixtures/kernels/consan_load.hip | 943 B |
| inputs/fixtures/kernels/tiny_vecadd.hip | 375 B |
| recipe.yaml | 1.7 KB |
| sanitizer_report.json | 2.3 KB |