Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon May
config
Commits
b52f78c1
Commit
b52f78c1
authored
Nov 20, 2019
by
Simon May
Browse files
Options
Downloads
Patches
Plain Diff
Only load modules once per session in .bashrc
parent
65c76051
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.bashrc
+30
-25
30 additions, 25 deletions
.bashrc
with
30 additions
and
25 deletions
.bashrc
+
30
−
25
View file @
b52f78c1
...
@@ -2,15 +2,19 @@
...
@@ -2,15 +2,19 @@
# in /etc/profile, i.e. *before* ~/.profile!
# in /etc/profile, i.e. *before* ~/.profile!
.
~/.env
.
~/.env
# setup modules
# setup modules; only execute once to prevent re-loading impi after loading gcc
if
[
-z
"
$_MODULES_LOADED
"
]
;
then
# set variable to mark modules as loaded
_MODULES_LOADED
=
1
export
_MODULES_LOADED
# hierarchical module system: compiler → mpi → libraries
# hierarchical module system: compiler → mpi → libraries
# Modules fftw-mpi and hdf5-mpi become available after loading a compiler module
# Modules fftw-mpi and hdf5-mpi become available after loading a compiler module
# and an MPI library (impi). The available modules are determined by the
# and an MPI library (impi). The available modules are determined by the
# compiler/MPI combination that was loaded (i.e. in this case, fftw-mpi is the
# compiler/MPI combination that was loaded (i.e. in this case, fftw-mpi is the
# version compiled with intel and impi).
# version compiled with intel and impi).
# Currently, loading both compiler modules (gcc and intel) causes problems with
the
# Currently, loading both compiler modules (gcc and intel) causes problems with
# MODULEPATH that is set up by impi, so make sure to load another compiler
only
#
the
MODULEPATH that is set up by impi, so make sure to load another compiler
# *after* impi is loaded!
#
only
*after* impi is loaded!
module load intel
module load intel
module load impi
module load impi
module load fftw-mpi
module load fftw-mpi
...
@@ -27,6 +31,7 @@ module load anaconda
...
@@ -27,6 +31,7 @@ module load anaconda
module load julia
module load julia
module load gnuplot
module load gnuplot
module load p7zip
module load p7zip
fi
# if running interactively: set MPI variables; else stop
# if running interactively: set MPI variables; else stop
# see https://www.mpcdf.mpg.de/services/computing/linux/Astrophysics
# see https://www.mpcdf.mpg.de/services/computing/linux/Astrophysics
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment