Commit bc397f52 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Run tests on jlk using only 4 threads instead of 8 because there is not enough memory

parent faa92c51
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -26,7 +26,10 @@ stages:
.build_template_def: &build_template
    stage: build
    script:
        - export NUM_CORES=$(grep "core id" /proc/cpuinfo | wc -l)
        # all cores including hyperthreading
#        - export NUM_CORES=$(grep "core id" /proc/cpuinfo | wc -l)
#       # all pyhsical cores
        - export NUM_CORES=$(grep "core id" /proc/cpuinfo | sort -u | wc -l)
        - export MAKEFLAGS="-l$(echo 1.5*$NUM_CORES | bc) -j$NUM_CORES"
        - mkdir -p "./builddir/$CI_JOB_NAME"
        - pushd "./builddir/$CI_JOB_NAME"