Skip to content

Commit 5473f65

Browse files
committed
[refactorMakefile] attempt an additional fix for codegen: move back f2py patching from generateAndCompare.sh to patchMad.sh
(This is an old commit from 9 Dec but the description is still valid on 14 Dec) Before this commit, codegen was now failing on itscrd90 as it was previously failing on itscrd80 (patchMd.sh fails due to f2py) After this commit, codegen is succeeding again on itscrd90, and now also on itscrd80 (fixing the issue in PR madgraph5#753)
1 parent 8f65910 commit 5473f65

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/patchMad.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ touch ${dir}/Events/.keep # this file should already be present (mg5amcnlo copie
4949
\cp -pr ${scrdir}/MG5aMC_patches/${dir_patches}/fbridge_common.inc ${dir}/SubProcesses # new file
5050
if [ "${patchlevel}" == "2" ]; then
5151
cd ${dir}
52+
sed -i 's/DEFAULT_F2PY_COMPILER=f2py.*/DEFAULT_F2PY_COMPILER=f2py3/' Source/make_opts # AV back in patchMad.sh #753
5253
echo "DEBUG: cd ${PWD}; patch -p4 -i ${scrdir}/MG5aMC_patches/${dir_patches}/patch.common"
5354
if ! patch -p4 -i ${scrdir}/MG5aMC_patches/${dir_patches}/patch.common; then status=1; fi
5455
\rm -f Source/*.orig

epochX/cudacpp/CODEGEN/generateAndCompare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function codeGenAndDiff()
237237
\rm -rf ${outproc}/bin/internal/ufomodel/__pycache__
238238
touch ${outproc}/HTML/.keep # new file
239239
if [ "${patchlevel}" == "2" ]; then
240-
sed -i 's/DEFAULT_F2PY_COMPILER=f2py.*/DEFAULT_F2PY_COMPILER=f2py3/' ${outproc}/Source/make_opts
240+
###sed -i 's/DEFAULT_F2PY_COMPILER=f2py.*/DEFAULT_F2PY_COMPILER=f2py3/' ${outproc}/Source/make_opts # AV back in patchMad.sh #753
241241
cat ${outproc}/Source/make_opts | sed '/#end/q' | head --lines=-1 | sort > ${outproc}/Source/make_opts.new
242242
cat ${outproc}/Source/make_opts | sed -n -e '/#end/,$p' >> ${outproc}/Source/make_opts.new
243243
\mv ${outproc}/Source/make_opts.new ${outproc}/Source/make_opts

0 commit comments

Comments
 (0)