mirror of
https://github.com/shawfdong/modulefiles.git
synced 2025-04-04 07:11:32 +01:00
python modules
This commit is contained in:
parent
f3c4fc3baa
commit
a3e8c1d7ae
@ -1,42 +0,0 @@
|
||||
#%Module1.0#####################################################################
|
||||
##
|
||||
## Intel Parallel Studio XE modulefile
|
||||
##
|
||||
# /opt/intel/parallel_studio_xe_2019.1.053/psxevars.sh intel64
|
||||
proc ModulesHelp { } {
|
||||
global version
|
||||
|
||||
puts stderr "\tSets up environment for Intel Parallel Studio XE v$version\n"
|
||||
}
|
||||
|
||||
module-whatis "sets up environment for Intel Parallel Studio XE v2019.1.144"
|
||||
|
||||
# for Tcl script use only
|
||||
set version 2019.1.053
|
||||
|
||||
if { [ module-info mode load ] || [ module-info mode switch2 ] } {
|
||||
module load intel/2019.1.144
|
||||
module load mpi/intel_mpi_2019.1.144
|
||||
module load intel_parallel_studio/clck_2019.0
|
||||
module load intel_parallel_studio/itac_2019.1.022
|
||||
module load intel_parallel_studio/inspector_2019.1.0.579146
|
||||
module load intel_parallel_studio/vtune_amplifier_2019.1.0.579888
|
||||
module load intel_parallel_studio/advisor_2019.1.0.579143
|
||||
module load intel_parallel_studio/intelpython3
|
||||
}
|
||||
|
||||
if { [ module-info mode remove ] || [ module-info mode switch1 ] } {
|
||||
module unload intel_parallel_studio/intelpython3
|
||||
module unload intel_parallel_studio/advisor_2019.1.0.579143
|
||||
module unload intel_parallel_studio/vtune_amplifier_2019.1.0.579888
|
||||
module unload intel_parallel_studio/inspector_2019.1.0.579146
|
||||
module unload intel_parallel_studio/itac_2019.1.022
|
||||
module unload intel_parallel_studio/clck_2019.0
|
||||
module unload mpi/intel_mpi_2019.1.144
|
||||
module unload intel/2019.1.144
|
||||
}
|
||||
|
||||
conflict PrgEnv
|
||||
conflict PrgEnv-intel
|
||||
conflict PrgEnv-pgi
|
||||
conflict PrgEnv-gcc
|
14
README.md
14
README.md
@ -31,3 +31,17 @@ setenv PCP_DIR /opt/rh/devtoolset-7/root
|
||||
I would then further edit the produced modulefile, by adding help and
|
||||
versioning, and turn it into something like [gcc/7.3.1](gcc/7.3.1).
|
||||
|
||||
## Converting Intel Parallel Studio XE init scripts into Environment Modules
|
||||
We can also use the same tools to convert Intel Parallel Studio XE init
|
||||
scripts into modulefiles. For example:
|
||||
```
|
||||
$ createmodule.sh /opt/intel/vtune_amplifier_2019.1.0.579888/amplxe-vars.sh intel64
|
||||
Copyright (C) 2009-2018 Intel Corporation. All rights reserved.
|
||||
Intel(R) VTune(TM) Amplifier 2019 (build 579888)
|
||||
#%Module 1.0
|
||||
prepend-path PATH /opt/intel/vtune_amplifier_2019.1.0.579888/bin64
|
||||
prepend-path PKG_CONFIG_PATH /opt/intel/vtune_amplifier_2019.1.0.579888/include/pkgconfig/lib64:
|
||||
setenv VTUNE_AMPLIFIER_2019_DIR /opt/intel/vtune_amplifier_2019.1.0.579888
|
||||
```
|
||||
Again, I would further edit the produced modulefiles to make them more
|
||||
readable; and organize the modulefiles in a more logical way.
|
||||
|
2
python/.version
Normal file
2
python/.version
Normal file
@ -0,0 +1,2 @@
|
||||
#%Module
|
||||
set ModulesVersion "anaconda3"
|
12
python/anaconda2
Normal file
12
python/anaconda2
Normal file
@ -0,0 +1,12 @@
|
||||
#%Module1.0#####################################################################
|
||||
##
|
||||
## anaconda2 modulefile
|
||||
##
|
||||
proc ModulesHelp { } {
|
||||
puts stderr "\tAdds Anaconda Python 2 to your PATH environment variable\n"
|
||||
}
|
||||
|
||||
module-whatis "adds Anaconda Python 2 to your PATH environment variable"
|
||||
|
||||
prepend-path PATH ~/anaconda2/bin
|
||||
conflict python
|
12
python/anaconda3
Normal file
12
python/anaconda3
Normal file
@ -0,0 +1,12 @@
|
||||
#%Module1.0#####################################################################
|
||||
##
|
||||
## anaconda3 modulefile
|
||||
##
|
||||
proc ModulesHelp { } {
|
||||
puts stderr "\tAdds Anaconda Python 3 to your PATH environment variable\n"
|
||||
}
|
||||
|
||||
module-whatis "adds Anaconda Python 3 to your PATH environment variable"
|
||||
|
||||
prepend-path PATH $env(HOME)/anaconda3/bin
|
||||
conflict python
|
12
python/intelpython2
Normal file
12
python/intelpython2
Normal file
@ -0,0 +1,12 @@
|
||||
#%Module1.0#####################################################################
|
||||
##
|
||||
## intelpython2 modulefile
|
||||
##
|
||||
proc ModulesHelp { } {
|
||||
puts stderr "\tAdds Intel Python 2 to your PATH environment variable\n"
|
||||
}
|
||||
|
||||
module-whatis "adds Intel Python 2 to your PATH environment variable"
|
||||
|
||||
prepend-path PATH ~/intelpython2/bin
|
||||
conflict python
|
12
python/intelpython3
Normal file
12
python/intelpython3
Normal file
@ -0,0 +1,12 @@
|
||||
#%Module1.0#####################################################################
|
||||
##
|
||||
## intelpython3 modulefile
|
||||
##
|
||||
proc ModulesHelp { } {
|
||||
puts stderr "\tAdds Intel Python 3 to your PATH environment variable\n"
|
||||
}
|
||||
|
||||
module-whatis "adds Intel Python 3 to your PATH environment variable"
|
||||
|
||||
prepend-path PATH $env(HOME)/anaconda3/bin
|
||||
conflict python
|
20
python/rh-python36
Normal file
20
python/rh-python36
Normal file
@ -0,0 +1,20 @@
|
||||
#%Module1.0#####################################################################
|
||||
##
|
||||
## rh-python36 modulefile
|
||||
##
|
||||
proc ModulesHelp { } {
|
||||
puts stderr "\tSets up environment for SCL rh-python36\n"
|
||||
}
|
||||
|
||||
module-whatis "sets up environment for SCL rh-python36"
|
||||
|
||||
# for Tcl script use only
|
||||
set root /opt/rh/rh-python36/root
|
||||
|
||||
prepend-path LD_LIBRARY_PATH $root/usr/lib64
|
||||
prepend-path MANPATH $root/usr/share/man
|
||||
prepend-path PATH $root/usr/bin
|
||||
prepend-path PKG_CONFIG_PATH $root/usr/lib64/pkgconfig
|
||||
prepend-path XDG_DATA_DIRS $root/usr/share
|
||||
|
||||
conflict python
|
Loading…
x
Reference in New Issue
Block a user