rocm-smi: fix runtime

This commit is contained in:
Evils 2022-09-26 09:02:03 +02:00
parent fde244a8c7
commit fd0d5d976c

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" ''