mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
rocm-smi: fix runtime
This commit is contained in:
parent
fde244a8c7
commit
fd0d5d976c
@ -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" ''
|
||||
|
Loading…
Reference in New Issue
Block a user