From 99dd7e9a4a09780031b791e70149a262e17f6cf3 Mon Sep 17 00:00:00 2001 From: Florian Deconinck Date: Fri, 10 May 2024 14:43:34 -0400 Subject: [PATCH 1/2] Add serialbox --- .../SMTStack/2024.05.00-no-venv.lua | 50 +++++++++++++++++ .../modulefiles/SMTStack/2024.05.00.lua | 55 +++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00-no-venv.lua create mode 100644 sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00.lua diff --git a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00-no-venv.lua b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00-no-venv.lua new file mode 100644 index 0000000..e136447 --- /dev/null +++ b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00-no-venv.lua @@ -0,0 +1,50 @@ +load("comp/gcc/12.3.0") +load("lib/mkl/2023.2.0") +load("nvidia/nvhpc-byo-compiler/23.9") + +local install_dir = "/discover/nobackup/projects/geosongpu/sw_sles15/live/src/2024.04.00/install" + +-- Fix: GT4Py expects CUDA_HOME to be set -- +setenv("CUDA_HOME", os.getenv("NVHPC_ROOT")) + +-- UCX -- +local ucx_pkgdir = pathJoin(install_dir, "ucx") +prepend_path("LD_LIBRARY_PATH",pathJoin(ucx_pkgdir,"lib")) + +-- OMPI -- +local ompi_pkgdir = pathJoin(install_dir, "ompi") + +setenv("M_MPI_ROOT",ompi_pkgdir) +setenv("OPENMPI",ompi_pkgdir) +setenv("MPI_HOME",ompi_pkgdir) + +prepend_path("PATH",pathJoin(ompi_pkgdir,"bin")) +prepend_path("LD_LIBRARY_PATH",pathJoin(ompi_pkgdir,"lib")) +prepend_path("INCLUDE",pathJoin(ompi_pkgdir,"include")) +prepend_path("MANPATH",pathJoin(ompi_pkgdir,"share/man")) + +setenv("OMPI_MCA_orte_tmpdir_base","/tmp") +setenv("TMPDIR","/tmp") +setenv("OMP_STACKSIZE","1G") +setenv("OMPI_MCA_mca_base_component_show_load_errors","0") +setenv("PMIX_MCA_mca_base_component_show_load_errors","0") + +-- BOOST HEADERS (as expected by gt4py) -- +local boost_pkgdir = pathJoin(install_dir, "boost") +setenv("BOOST_ROOT", boost_pkgdir) + +-- Python 3 -- +local py_pkgdir = pathJoin(install_dir, "python3") +prepend_path("PATH",pathJoin(py_pkgdir,"bin")) +prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib")) +prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib64")) + +-- Baselibs at a BASEDIR -- +local baselibs_pkgdir = pathJoin(install_dir, "baselibs-7.17.1/install/x86_64-pc-linux-gnu/") +setenv("BASEDIR", baselibs_pkgdir) + +-- Serialbox -- +local ser_pkgdir = pathJoin(install_dir, "serialbox") +prepend_path("SERIALBOX_ROOT", ser_pkgdir) +prepend_path("PATH",pathJoin(ser_pkgdir,"python/pp_ser")) +prepend_path("LD_LIBRARY_PATH",pathJoin(ser_pkgdir,"lib")) diff --git a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00.lua b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00.lua new file mode 100644 index 0000000..6cdd263 --- /dev/null +++ b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00.lua @@ -0,0 +1,55 @@ +load("comp/gcc/12.3.0") +load("lib/mkl/2023.2.0") +load("nvidia/nvhpc-byo-compiler/23.9") + +local install_dir = "/discover/nobackup/projects/geosongpu/sw_sles15/live/src/2024.04.00/install" + +-- Fix: GT4Py expects CUDA_HOME to be set -- +setenv("CUDA_HOME", os.getenv("NVHPC_ROOT")) + +-- UCX -- +local ucx_pkgdir = pathJoin(install_dir, "ucx") +prepend_path("LD_LIBRARY_PATH",pathJoin(ucx_pkgdir,"lib")) + +-- OMPI -- +local ompi_pkgdir = pathJoin(install_dir, "ompi") + +setenv("M_MPI_ROOT",ompi_pkgdir) +setenv("OPENMPI",ompi_pkgdir) +setenv("MPI_HOME",ompi_pkgdir) + +prepend_path("PATH",pathJoin(ompi_pkgdir,"bin")) +prepend_path("LD_LIBRARY_PATH",pathJoin(ompi_pkgdir,"lib")) +prepend_path("INCLUDE",pathJoin(ompi_pkgdir,"include")) +prepend_path("MANPATH",pathJoin(ompi_pkgdir,"share/man")) + +setenv("OMPI_MCA_orte_tmpdir_base","/tmp") +setenv("TMPDIR","/tmp") +setenv("OMP_STACKSIZE","1G") +setenv("OMPI_MCA_mca_base_component_show_load_errors","0") +setenv("PMIX_MCA_mca_base_component_show_load_errors","0") + +-- BOOST HEADERS (as expected by gt4py) -- +local boost_pkgdir = pathJoin(install_dir, "boost") +setenv("BOOST_ROOT", boost_pkgdir) + +-- Python 3 -- +local py_pkgdir = pathJoin(install_dir, "python3") +prepend_path("PATH",pathJoin(py_pkgdir,"bin")) +prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib")) +prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib64")) + +-- Load venv -- +local py_pkgdir = pathJoin(install_dir, "venv") +prepend_path("PATH",pathJoin(py_pkgdir,"bin")) +setenv("VIRTUAL_ENV", py_pkgdir) + +-- Baselibs at a BASEDIR -- +local baselibs_pkgdir = pathJoin(install_dir, "baselibs-7.17.1/install/x86_64-pc-linux-gnu/") +setenv("BASEDIR", baselibs_pkgdir) + +-- Serialbox -- +local ser_pkgdir = pathJoin(install_dir, "serialbox") +prepend_path("SERIALBOX_ROOT", ser_pkgdir) +prepend_path("PATH",pathJoin(ser_pkgdir,"python/pp_ser")) +prepend_path("LD_LIBRARY_PATH",pathJoin(ser_pkgdir,"lib")) From 5d02d5e5bd4868ca14bebe92d53d44f33f1380a5 Mon Sep 17 00:00:00 2001 From: Florian Deconinck Date: Fri, 31 May 2024 15:04:24 -0400 Subject: [PATCH 2/2] Serialbox on 2024.04.00 --- .../SMTStack/2024.04.00-no-venv.lua | 6 ++ .../modulefiles/SMTStack/2024.04.00.lua | 6 ++ .../SMTStack/2024.05.00-no-venv.lua | 50 ----------------- .../modulefiles/SMTStack/2024.05.00.lua | 55 ------------------- 4 files changed, 12 insertions(+), 105 deletions(-) delete mode 100644 sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00-no-venv.lua delete mode 100644 sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00.lua diff --git a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.04.00-no-venv.lua b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.04.00-no-venv.lua index 8e85696..e136447 100644 --- a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.04.00-no-venv.lua +++ b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.04.00-no-venv.lua @@ -42,3 +42,9 @@ prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib64")) -- Baselibs at a BASEDIR -- local baselibs_pkgdir = pathJoin(install_dir, "baselibs-7.17.1/install/x86_64-pc-linux-gnu/") setenv("BASEDIR", baselibs_pkgdir) + +-- Serialbox -- +local ser_pkgdir = pathJoin(install_dir, "serialbox") +prepend_path("SERIALBOX_ROOT", ser_pkgdir) +prepend_path("PATH",pathJoin(ser_pkgdir,"python/pp_ser")) +prepend_path("LD_LIBRARY_PATH",pathJoin(ser_pkgdir,"lib")) diff --git a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.04.00.lua b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.04.00.lua index b38c99c..6cdd263 100644 --- a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.04.00.lua +++ b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.04.00.lua @@ -47,3 +47,9 @@ setenv("VIRTUAL_ENV", py_pkgdir) -- Baselibs at a BASEDIR -- local baselibs_pkgdir = pathJoin(install_dir, "baselibs-7.17.1/install/x86_64-pc-linux-gnu/") setenv("BASEDIR", baselibs_pkgdir) + +-- Serialbox -- +local ser_pkgdir = pathJoin(install_dir, "serialbox") +prepend_path("SERIALBOX_ROOT", ser_pkgdir) +prepend_path("PATH",pathJoin(ser_pkgdir,"python/pp_ser")) +prepend_path("LD_LIBRARY_PATH",pathJoin(ser_pkgdir,"lib")) diff --git a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00-no-venv.lua b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00-no-venv.lua deleted file mode 100644 index e136447..0000000 --- a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00-no-venv.lua +++ /dev/null @@ -1,50 +0,0 @@ -load("comp/gcc/12.3.0") -load("lib/mkl/2023.2.0") -load("nvidia/nvhpc-byo-compiler/23.9") - -local install_dir = "/discover/nobackup/projects/geosongpu/sw_sles15/live/src/2024.04.00/install" - --- Fix: GT4Py expects CUDA_HOME to be set -- -setenv("CUDA_HOME", os.getenv("NVHPC_ROOT")) - --- UCX -- -local ucx_pkgdir = pathJoin(install_dir, "ucx") -prepend_path("LD_LIBRARY_PATH",pathJoin(ucx_pkgdir,"lib")) - --- OMPI -- -local ompi_pkgdir = pathJoin(install_dir, "ompi") - -setenv("M_MPI_ROOT",ompi_pkgdir) -setenv("OPENMPI",ompi_pkgdir) -setenv("MPI_HOME",ompi_pkgdir) - -prepend_path("PATH",pathJoin(ompi_pkgdir,"bin")) -prepend_path("LD_LIBRARY_PATH",pathJoin(ompi_pkgdir,"lib")) -prepend_path("INCLUDE",pathJoin(ompi_pkgdir,"include")) -prepend_path("MANPATH",pathJoin(ompi_pkgdir,"share/man")) - -setenv("OMPI_MCA_orte_tmpdir_base","/tmp") -setenv("TMPDIR","/tmp") -setenv("OMP_STACKSIZE","1G") -setenv("OMPI_MCA_mca_base_component_show_load_errors","0") -setenv("PMIX_MCA_mca_base_component_show_load_errors","0") - --- BOOST HEADERS (as expected by gt4py) -- -local boost_pkgdir = pathJoin(install_dir, "boost") -setenv("BOOST_ROOT", boost_pkgdir) - --- Python 3 -- -local py_pkgdir = pathJoin(install_dir, "python3") -prepend_path("PATH",pathJoin(py_pkgdir,"bin")) -prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib")) -prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib64")) - --- Baselibs at a BASEDIR -- -local baselibs_pkgdir = pathJoin(install_dir, "baselibs-7.17.1/install/x86_64-pc-linux-gnu/") -setenv("BASEDIR", baselibs_pkgdir) - --- Serialbox -- -local ser_pkgdir = pathJoin(install_dir, "serialbox") -prepend_path("SERIALBOX_ROOT", ser_pkgdir) -prepend_path("PATH",pathJoin(ser_pkgdir,"python/pp_ser")) -prepend_path("LD_LIBRARY_PATH",pathJoin(ser_pkgdir,"lib")) diff --git a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00.lua b/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00.lua deleted file mode 100644 index 6cdd263..0000000 --- a/sw_stack/discover/sles15/modulefiles/SMTStack/2024.05.00.lua +++ /dev/null @@ -1,55 +0,0 @@ -load("comp/gcc/12.3.0") -load("lib/mkl/2023.2.0") -load("nvidia/nvhpc-byo-compiler/23.9") - -local install_dir = "/discover/nobackup/projects/geosongpu/sw_sles15/live/src/2024.04.00/install" - --- Fix: GT4Py expects CUDA_HOME to be set -- -setenv("CUDA_HOME", os.getenv("NVHPC_ROOT")) - --- UCX -- -local ucx_pkgdir = pathJoin(install_dir, "ucx") -prepend_path("LD_LIBRARY_PATH",pathJoin(ucx_pkgdir,"lib")) - --- OMPI -- -local ompi_pkgdir = pathJoin(install_dir, "ompi") - -setenv("M_MPI_ROOT",ompi_pkgdir) -setenv("OPENMPI",ompi_pkgdir) -setenv("MPI_HOME",ompi_pkgdir) - -prepend_path("PATH",pathJoin(ompi_pkgdir,"bin")) -prepend_path("LD_LIBRARY_PATH",pathJoin(ompi_pkgdir,"lib")) -prepend_path("INCLUDE",pathJoin(ompi_pkgdir,"include")) -prepend_path("MANPATH",pathJoin(ompi_pkgdir,"share/man")) - -setenv("OMPI_MCA_orte_tmpdir_base","/tmp") -setenv("TMPDIR","/tmp") -setenv("OMP_STACKSIZE","1G") -setenv("OMPI_MCA_mca_base_component_show_load_errors","0") -setenv("PMIX_MCA_mca_base_component_show_load_errors","0") - --- BOOST HEADERS (as expected by gt4py) -- -local boost_pkgdir = pathJoin(install_dir, "boost") -setenv("BOOST_ROOT", boost_pkgdir) - --- Python 3 -- -local py_pkgdir = pathJoin(install_dir, "python3") -prepend_path("PATH",pathJoin(py_pkgdir,"bin")) -prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib")) -prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib64")) - --- Load venv -- -local py_pkgdir = pathJoin(install_dir, "venv") -prepend_path("PATH",pathJoin(py_pkgdir,"bin")) -setenv("VIRTUAL_ENV", py_pkgdir) - --- Baselibs at a BASEDIR -- -local baselibs_pkgdir = pathJoin(install_dir, "baselibs-7.17.1/install/x86_64-pc-linux-gnu/") -setenv("BASEDIR", baselibs_pkgdir) - --- Serialbox -- -local ser_pkgdir = pathJoin(install_dir, "serialbox") -prepend_path("SERIALBOX_ROOT", ser_pkgdir) -prepend_path("PATH",pathJoin(ser_pkgdir,"python/pp_ser")) -prepend_path("LD_LIBRARY_PATH",pathJoin(ser_pkgdir,"lib"))