message: randomly load-balance between CUDA devices in CI
diff: @@ -34,7 +34,7 @@ stages:
  .before_script_template: &default_before_script
  - export NUM_CORES=${CI_PARALLELISM}
  - export OMP_NUM_THREADS=${NUM_CORES}
  - - export CUDA_VISIBLE_DEVICES=0
  + - export CUDA_VISIBLE_DEVICES=$((RANDOM % 2))
  - export CCACHE_DIR=${CCACHE_DIR}
  - export CCACHE_MAXSIZE=${CCACHE_MAXSIZE}
  