diff --git a/PrgEnv-intel/2019.1.053-old b/PrgEnv-intel/2019.1.053-old deleted file mode 100644 index a631981..0000000 --- a/PrgEnv-intel/2019.1.053-old +++ /dev/null @@ -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 diff --git a/README.md b/README.md index a51556d..b1adc7e 100644 --- a/README.md +++ b/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. diff --git a/python/.version b/python/.version new file mode 100644 index 0000000..0fe328c --- /dev/null +++ b/python/.version @@ -0,0 +1,2 @@ +#%Module +set ModulesVersion "anaconda3" diff --git a/python/anaconda2 b/python/anaconda2 new file mode 100644 index 0000000..f2e42cf --- /dev/null +++ b/python/anaconda2 @@ -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 diff --git a/python/anaconda3 b/python/anaconda3 new file mode 100644 index 0000000..64f7ec7 --- /dev/null +++ b/python/anaconda3 @@ -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 diff --git a/python/intelpython2 b/python/intelpython2 new file mode 100644 index 0000000..5d6245c --- /dev/null +++ b/python/intelpython2 @@ -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 diff --git a/python/intelpython3 b/python/intelpython3 new file mode 100644 index 0000000..0876ca5 --- /dev/null +++ b/python/intelpython3 @@ -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 diff --git a/python/rh-python36 b/python/rh-python36 new file mode 100644 index 0000000..b765fda --- /dev/null +++ b/python/rh-python36 @@ -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