Skip to content

Commit

Permalink
cleaned up file and add missing azure lib
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardSnyder-NOAA committed Jun 18, 2024
1 parent 64be05a commit 4e9548d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
7 changes: 2 additions & 5 deletions modulefiles/tasks/noaacloud/plot_allvars.local.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
unload("python")
append_path("MODULEPATH","/contrib/EPIC/miniconda3/modulefiles")
load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.12.0"))

setenv("SRW_ENV", "regional_workflow")
load("conda")
setenv("SRW_ENV", "srw_graphics")
5 changes: 5 additions & 0 deletions modulefiles/tasks/noaacloud/python_srw.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
load("conda")
setenv("SRW_ENV", "srw_app")

-- Add missing libstdc binary for Azure
if os.getenv("PW_CSP") == "azure" then
setenv("LD_PRELOAD","/opt/nvidia/nsight-systems/2023.1.2/host-linux-x64/libstdc++.so.6")
end
5 changes: 5 additions & 0 deletions modulefiles/tasks/noaacloud/run_vx.local.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ end
load("ufs-pyenv")
load("conda")
setenv("SRW_ENV", "srw_app")

-- Add missing libstdc binary for Azure
if os.getenv("PW_CSP") == "azure" then
setenv("LD_PRELOAD","/opt/nvidia/nsight-systems/2023.1.2/host-linux-x64/libstdc++.so.6")
end
10 changes: 5 additions & 5 deletions modulefiles/wflow_noaacloud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ whatis([===[Loads libraries needed for running the UFS SRW App on NOAA cloud ]==
prepend_path("MODULEPATH","/apps/modules/modulefiles")
load("rocoto")



load("conda")

setenv("PROJ_LIB","/contrib/EPIC/miniconda3/4.12.0/envs/regional_workflow/share/proj")
setenv("OPT","/contrib/EPIC/hpc-modules")
append_path("PATH","/contrib/EPIC/miniconda3/4.12.0/envs/regional_workflow/bin")
prepend_path("PATH","/contrib/EPIC/bin")

-- Add missing libstdc binary for Azure
if os.getenv("PW_CSP") == "azure" then
setenv("LD_PRELOAD","/opt/nvidia/nsight-systems/2023.1.2/host-linux-x64/libstdc++.so.6")
end

if mode() == "load" then
LmodMsgRaw([===[Please do the following to activate conda:
> conda activate srw_app
Expand Down

0 comments on commit 4e9548d

Please sign in to comment.