Skip to content

Commit

Permalink
Consolidate module loads
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Sep 5, 2024
1 parent 7684e6b commit 529b22c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 40 deletions.
2 changes: 1 addition & 1 deletion bin/executable_pyenv_python_install.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ ! -x "$(command -v pyenv)" ]]; then
fi

{{- if eq .nrel_cluster "ellis" }}
MODULES_DATE=2023-05-11
MODULES_DATE=2024-05-01
source /data/ssd1/software/${MODULES_DATE}/env.sh
module load gcc
module load binutils
Expand Down
85 changes: 46 additions & 39 deletions dot_local/share/zinit/plugins/hpc/hpc.plugin.zsh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi

# Set the modules
{{- if eq .nrel_cluster "ellis" }}
MODULES_DATE=2023-05-11
MODULES_DATE=2024-05-01
source /data/ssd1/software/${MODULES_DATE}/env.sh
export TMPDIR=/data/ssd1/home/${USER}/.tmp
{{- else if eq .nrel_cluster "kestrel" }}
Expand All @@ -42,27 +42,52 @@ umask u=rwx,go=rx,o=rx
function load_custom_modules {

{
module purge
module load gcc
module load binutils
module load bzip2
module load cmake
module load ffmpeg/4.2.2
module load git
module load gnutls
module load htop
module load image-magick
module load libffi
module load libtool
module load py-setuptools-scm
module load sqlite
module load tmux
{{- if eq .nrel_cluster "ellis" }}
module load python/3.10.10
# Custom for OLCF HPC machines
{{- if .ornl_hpc }}
module load DefApps-spi/default
module load cmake
module load emacs
module load go
module load htop
module load imagemagick
module load tmux
module load cray-python
{{- else if (.nrel_hpc) }}
{{- if eq .nrel_cluster "ellis" }}
module purge
module load gcc
module load binutils
module load bzip2
module load cmake
module load ffmpeg
module load git
module load gnutls
module load htop
module load imagemagick
module load libffi
module load libtool
module load py-setuptools-scm
module load py-typing-extensions
module load py-packaging
module load sqlite
module load tmux
module load python/3.11.7
module load hunspell
module load npm
module load emacs/29.3
module load ccls
{{- else if eq .nrel_cluster "kestrel" }}
module load cmake
module load gnutls
module load htop
module load tmux
module load python/3.11.4
module load binutils
module load llvm
module load npm
module load emacs/29.2
{{- end }}
{{- end }}

module load emacs/28.2
module load ccls
} &> /dev/null
}

Expand All @@ -82,24 +107,6 @@ function pvtunnel() {

{{ end }}

{{- if .ornl_hpc }}
# Custom for OLCF HPC machines
function load_custom_modules {
{
module load DefApps-spi/default
module load cmake
module load emacs
module load go
module load htop
module load imagemagick
module load tmux

module load cray-python

} &> /dev/null
}
{{ end }}

{{- if or (.nrel_hpc) (.ornl_hpc) }}
load_custom_modules
{{ end }}
Expand Down

0 comments on commit 529b22c

Please sign in to comment.