Merge pull request #192996 from evils/fix-rocm-smi

This commit is contained in:
Bernardo Meurer 2022-09-26 12:22:52 -03:00 committed by GitHub
commit d818fa6fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,14 +32,10 @@ stdenv.mkDerivation rec {
substituteInPlace oam/CMakeLists.txt \
--replace "DESTINATION oam/" "DESTINATION " \
--replace 'DESTINATION ''${OAM_NAME}/' "DESTINATION "
# Update relative path to librocm_smi64 in the Python binding.
substituteInPlace python_smi_tools/rsmiBindings.py \
--replace "/../lib/librocm_smi64.so" "/../../librocm_smi64.so"
'';
postInstall = ''
wrapPythonProgramsIn $out/bin
wrapPythonProgramsIn $out
'';
passthru.updateScript = writeScript "update.sh" ''