Files
nixpkgs/pkgs/development/rocm-modules/rocm-comgr/fix-ccob-compat-output-filename.patch
Luna Nova 4448efbdd7 rocmPackages.rocm-comgr: fix failure to find code object when xnack any variant should match
Fixes No compatible code objects found for: gfx90a:sramecc+:xnack- in /nix/store/klazf7j7i5642cyjwi125fx4fdwx82f3-python3.13-torch-2.10.0-lib/lib/libtorch_hip.so, value of HIP_FORCE_SPIRV_CODEOBJECT: 0. Available code objects: [amdgcn-amd-amdhsa--gfx90a]
Failed to load fat binary for function '_ZN2at6native29vectorized_elementwise_kernelILi4ENS0_11FillFunctorIiEESt5arrayIPcLm1EEEEviT0_T1_' (error 200)
2026-03-07 19:57:47 -08:00

12 lines
504 B
Diff

--- a/src/comgr-compiler.cpp
+++ b/src/comgr-compiler.cpp
@@ -1425,7 +1425,7 @@
// Add an output file for each target
SmallString<128> OutputFilePath = OutputDir;
sys::path::append(OutputFilePath,
- OutputPrefix + "-" + CompatEntry + "." + FileExtension);
+ OutputPrefix + "-" + Entry + "." + FileExtension);
BundlerConfig.TargetNames.emplace_back(CompatEntry);
BundlerConfig.OutputFileNames.emplace_back(OutputFilePath);