We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ff96f7 commit 0412bf7Copy full SHA for 0412bf7
nemo_run/core/execution/slurm.py
@@ -560,7 +560,7 @@ def get_nsys_entrypoint(self) -> str:
560
launcher = self.get_launcher()
561
entrypoint, postfix = "nsys", ""
562
if launcher.nsys_gpu_metrics:
563
- entrypoint = 'bash -c \'GPU_METRICS_FLAG=""; if [ "$SLURM_PROCID" -eq 0 ]; then GPU_METRICS_FLAG="--gpu-metrics-devices=all"; fi; nsys'
+ entrypoint = 'bash -c \'GPU_METRICS_FLAG=""; if echo "${GPU_METRICS_NODES}" | grep -q -w "${SLURM_NODEID}"; then GPU_METRICS_FLAG="--gpu-metrics-devices=${SLURM_LOCALID}"; fi; nsys'
564
postfix = "'"
565
return (entrypoint, postfix)
566
0 commit comments