File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 8787 exit 1
8888fi
8989
90- totalmem=$( grep MemTotal /proc/meminfo | awk ' {printf "%i", $2 / 1024}' )
91- if [[ $totalmem -lt 27000 ]]; then
92- echo " Warning: Less than 27GB of memory detected. Using only one thread for sysimage compilation."
93- export JULIA_IMAGE_THREADS=1
90+ # Check memory only on Linux (not available on Windows)
91+ if [[ " $OSTYPE " != " msys" && " $OSTYPE " != " win32" ]]; then
92+ totalmem=$( grep MemTotal /proc/meminfo | awk ' {printf "%i", $2 / 1024}' )
93+ if [[ $totalmem -lt 27000 ]]; then
94+ echo " Warning: Less than 27GB of memory detected. Using only one thread for sysimage compilation."
95+ export JULIA_IMAGE_THREADS=1
96+ fi
9497fi
9598
9699julia_version=$( $JULIA_CMD --version | awk ' {print($3)}' )
You can’t perform that action at this time.
0 commit comments