mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 09:45:36 +00:00
6d0c2de399
no queueing system dependency -- just interactive scripts
13 lines
230 B
Bash
Executable File
13 lines
230 B
Bash
Executable File
#!/bin/bash
|
|
|
|
num_tile=2
|
|
gpu_id=$(( (MPI_LOCALRANKID / num_tile ) ))
|
|
tile_id=$((MPI_LOCALRANKID % num_tile))
|
|
|
|
export ZE_AFFINITY_MASK=$gpu_id.$tile_id
|
|
|
|
echo "local rank $MPI_LOCALRANKID ; ZE_AFFINITY_MASK=$ZE_AFFINITY_MASK"
|
|
|
|
"$@"
|
|
|