From f62bb14dc82b049abffeb2342c17b7001afde740 Mon Sep 17 00:00:00 2001
From: janEbert <janpublicebert@posteo.net>
Date: Fri, 16 Aug 2024 18:02:12 +0200
Subject: [PATCH] Use newly recommended SMT prevention

I.e., prefer `--threads-per-core=1` instead of `--hint=nomultithread`
since it does not result in ambiguity.
---
 pytorch-ddp-example/run.sbatch  | 6 ++----
 pytorch-fsdp-example/run.sbatch | 6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/pytorch-ddp-example/run.sbatch b/pytorch-ddp-example/run.sbatch
index 27c4e4c..19c49e3 100644
--- a/pytorch-ddp-example/run.sbatch
+++ b/pytorch-ddp-example/run.sbatch
@@ -4,11 +4,9 @@
 #SBATCH --partition=develbooster
 #SBATCH --nodes=1
 #SBATCH --ntasks-per-node=1
-# 96 CPUs w/o nomultithread
-# 48 CPUs w/ nomultithread
 #SBATCH --cpus-per-task=48
-# Use only physical cores.
-#SBATCH --hint=nomultithread
+# Use only physical cores. (Can use up to 2 threads per core.)
+#SBATCH --threads-per-core=1
 #SBATCH --gres=gpu:4
 #SBATCH --time=00:15:00
 
diff --git a/pytorch-fsdp-example/run.sbatch b/pytorch-fsdp-example/run.sbatch
index 4b404e4..2e31024 100644
--- a/pytorch-fsdp-example/run.sbatch
+++ b/pytorch-fsdp-example/run.sbatch
@@ -4,11 +4,9 @@
 #SBATCH --partition=develbooster
 #SBATCH --nodes=1
 #SBATCH --ntasks-per-node=1
-# 96 CPUs w/o nomultithread
-# 48 CPUs w/ nomultithread
 #SBATCH --cpus-per-task=48
-# Use only physical cores.
-#SBATCH --hint=nomultithread
+# Use only physical cores. (Can use up to 2 threads per core.)
+#SBATCH --threads-per-core=1
 #SBATCH --gres=gpu:4
 #SBATCH --time=00:15:00
 
-- 
GitLab