Hyper-Q / MPS: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 41: Line 41:


  <!--T:12-->
  <!--T:12-->
{{File|content=
{{File|name=script.sh
|contents=
#!/bin/bash
#!/bin/bash
#SBATCH --gpus-per-node=v100:1
#SBATCH --gpus-per-node=v100:1
#SBATCH --time=0-10:00
#SBATCH --time=0-10:00
#SBATCH --mem-per-cpu=8G
#SBATCH --mem-per-cpu=8G
#SBATCH --cpus-per-task=8
#SBATCH --cpus-per-task=8
   
   
mkdir -p $HOME/tmp
mkdir -p $HOME/tmp
export CUDA_MPS_LOG_DIRECTORY=$HOME/tmp
export CUDA_MPS_LOG_DIRECTORY=$HOME/tmp
nvidia-cuda-mps-control -d
nvidia-cuda-mps-control -d
   
   
for ((i=0; i<8; i++))
for ((i=0; i<8; i++))
  do
do
  echo $i
echo $i
  ./my_code $i  &
./my_code $i  &
  done
done
   
   
wait
wait
}}
}}


Bureaucrats, cc_docs_admin, cc_staff, rsnt_translations
2,837

edits