mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-20 08:46:55 +01:00
Bug fix in script
This commit is contained in:
@ -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