1
0
forked from ROCm/rocsolver

1 Commits
main ... main

Author SHA256 Message Date
Bernhard M. Wiedemann
da1677461a Don't fail build on 1-core-VM
When `expr` returns a result of '0', it sets the return code to 1. `eval` just passes that through and that fails the build there on 1-core-VMs.
2025-11-20 08:38:22 +01:00
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 20 07:35:23 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.de>
- Don't fail build on 1-core-VM
-------------------------------------------------------------------
Tue Nov 11 14:48:08 UTC 2025 - Tom Rix <Tom.Rix@amd.com>

View File

@@ -233,7 +233,9 @@ if [ ${HIP_JOBS} = 1 ]; then
HIP_JOBS=4
fi
fi
HIP_JOBS=`eval "expr ${HIP_JOBS} / 2"`
if [ ${HIP_JOBS} != 1 ] ; then
HIP_JOBS=`expr ${HIP_JOBS} / 2`
fi
# Take into account memmory usage per core, do not thrash real memory
BUILD_MEM=32