mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-14 11:43:18 +01:00
Bug fix in script
This commit is contained in:
1 parent
d93eac7b1c
commit
7786ea9921
1 file changed
+2
-3
@@ -1,9 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
num_tile=2
|
||||
|
||||
gpu_id=$(( (MPI_LOCAL_RANKID % num_tile ) ))
|
||||
tile_id=$((MPI_LOCAL_RANKID / num_tile))
|
||||
gpu_id=$(( (MPI_LOCALRANKID / num_tile ) ))
|
||||
tile_id=$((MPI_LOCALRANKID % num_tile))
|
||||
|
||||
export ZE_AFFINITY_MASK=$gpu_id.$tile_id
|
||||
|
||||
|
||||
Reference in new issue
Block a user