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