1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00
Grid/systems/Crusher/mpiwrapper.sh

14 lines
167 B
Bash
Raw Normal View History

2022-02-14 20:09:08 +00:00
#!/bin/bash
lrank=$SLURM_LOCALID
2022-03-03 22:00:37 +00:00
lgpu=(0 1 2 3 7 6 5 4)
2022-02-14 20:09:08 +00:00
2022-03-03 22:00:37 +00:00
export ROCR_VISIBLE_DEVICES=${lgpu[$lrank]}
2022-02-14 20:09:08 +00:00
2022-03-03 22:00:37 +00:00
echo "`hostname` - $lrank device=$ROCR_VISIBLE_DEVICES "
2022-02-14 20:09:08 +00:00
$*