From 42e2a3c79ec344b24ee9d39259bd7c517736cc62 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Tue, 10 Oct 2023 09:30:51 -0500 Subject: [PATCH 1/2] Update xprof.sh.erb.in --- xprof/xprof.sh.erb.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xprof/xprof.sh.erb.in b/xprof/xprof.sh.erb.in index 4d5fb145..8ed0efc9 100644 --- a/xprof/xprof.sh.erb.in +++ b/xprof/xprof.sh.erb.in @@ -70,10 +70,10 @@ mpi_local_rank_id() { } -SHARED_LOCAL_FILESYSTEM=/dev/shm/.thapi_lock/$(mpi_job_id) +SHARED_LOCAL_FILESYSTEM=/dev/shm/$(hostname)/.thapi_lock/$(mpi_job_id) SHARED_GLOBAL_FILESYSTEM=$HOME/.thapi_lock/$(mpi_job_id) THAPI_OUTPUT=${LTTNG_HOME:-$HOME} -# In live mode, we cannot have a socket name bigger than the unix limit +# In live mode, we cannot have a socket name bigger than the Unix limit THAPI_SESION_ID=$(echo "THAPI_$(hostname)_$(mpi_job_id)" | md5sum | cut -d" " -f1) export LTTNG_HOME=/tmp/lttng_home/$(mpi_job_id) From d101bc3ccca40a6ad2c3762ab33b9485217382e0 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Tue, 10 Oct 2023 09:36:50 -0500 Subject: [PATCH 2/2] Update xprof.sh.erb.in --- xprof/xprof.sh.erb.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xprof/xprof.sh.erb.in b/xprof/xprof.sh.erb.in index 8ed0efc9..c43f97ab 100644 --- a/xprof/xprof.sh.erb.in +++ b/xprof/xprof.sh.erb.in @@ -70,7 +70,7 @@ mpi_local_rank_id() { } -SHARED_LOCAL_FILESYSTEM=/dev/shm/$(hostname)/.thapi_lock/$(mpi_job_id) +SHARED_LOCAL_FILESYSTEM=/dev/shm/$(USER)/.thapi_lock/$(mpi_job_id) SHARED_GLOBAL_FILESYSTEM=$HOME/.thapi_lock/$(mpi_job_id) THAPI_OUTPUT=${LTTNG_HOME:-$HOME} # In live mode, we cannot have a socket name bigger than the Unix limit