cuda-modules: update uses of substituteInPlace to --replace-fail to fix deprecation warning

This commit is contained in:
Connor Baker 2024-04-03 16:38:52 +00:00
parent 14635b4092
commit d22f03ede9
2 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ in
# CUTENSOR_ROOT is double escaped
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "\''${CUTENSOR_ROOT}/include" "${cutensor.dev}/include"
--replace-fail "\''${CUTENSOR_ROOT}/include" "${cutensor.dev}/include"
'';
CUTENSOR_ROOT = cutensor;

View File

@ -134,13 +134,13 @@ attrsets.filterAttrs (attr: _: (builtins.hasAttr attr prev)) {
(oldAttrs.postPatch or "")
+ ''
substituteInPlace bin/nvcc.profile \
--replace \
--replace-fail \
'$(TOP)/lib' \
"''${!outputLib}/lib" \
--replace \
--replace-fail \
'$(TOP)/$(_NVVM_BRANCH_)' \
"''${!outputBin}/nvvm" \
--replace \
--replace-fail \
'$(TOP)/$(_TARGET_DIR_)/include' \
"''${!outputDev}/include"