Skip to content

Instantly share code, notes, and snippets.

@goerz
Created August 5, 2020 16:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goerz/c052f00d619cec42c65234bdb554f6dc to your computer and use it in GitHub Desktop.
Save goerz/c052f00d619cec42c65234bdb554f6dc to your computer and use it in GitHub Desktop.
Example module file for Intel Composer XE 2020
#%Module1.0#######################################################################
## modulefile for intel compiler
#
proc ModulesHelp { } {
global version
puts stderr "\tThis module sets paths for intel c++ and fortran compiler (Intel Composer XE 2020)"
}
module-whatis "Initialize intel c++ and fortran compiler (Intel Composer XE 2020)"
# set root of installed general software
set intelhome /data/goerz/intel
set compiler $intelhome/compilers_and_libraries_2020.1.217/linux
set debugger $intelhome/debugger_2020
set documentation $intelhome/documentation_2020/en
setenv MKLROOT $compiler/mkl
prepend-path MANPATH $documentation/debugger//gdb-igfx/man/
prepend-path MANPATH $documentation/debugger//gdb-mic/man/
prepend-path MANPATH $documentation/debugger//gdb-ia/man/
prepend-path MANPATH $compiler/mpi/man
prepend-path MANPATH $intelhome/man/common
setenv INTEL_LICENSE_FILE $::env(HOME)/.intel_license
setenv IPPROOT $compiler/ipp
setenv GDBSERVER_MIC $debugger/gdb/targets/mic/bin/gdbserver
prepend-path LIBRARY_PATH $compiler/tbb/lib/intel64_lin/gcc4.4
prepend-path LIBRARY_PATH $compiler/daal/lib/intel64_lin
prepend-path LIBRARY_PATH $compiler/tbb/lib/intel64/gcc4.7
prepend-path LIBRARY_PATH $compiler/mkl/lib/intel64_lin
prepend-path LIBRARY_PATH $compiler/compiler/lib/intel64_lin
prepend-path LIBRARY_PATH $compiler/ipp/lib/intel64
prepend-path MIC_LD_LIBRARY_PATH $compiler/mpi/mic/lib
prepend-path MIC_LD_LIBRARY_PATH $compiler/compiler/lib/mic
prepend-path MIC_LD_LIBRARY_PATH $compiler/ipp/lib/mic
prepend-path MIC_LD_LIBRARY_PATH $compiler/compiler/lib/intel64_lin_mic
prepend-path MIC_LD_LIBRARY_PATH $compiler/mkl/lib/intel64_lin_mic
prepend-path MIC_LD_LIBRARY_PATH $compiler/tbb/lib/mic
prepend-path LD_LIBRARY_PATH $compiler/tbb/lib/intel64_lin/gcc4.4
prepend-path LD_LIBRARY_PATH $compiler/daal/lib/intel64_lin
prepend-path LD_LIBRARY_PATH $debugger/libipt/intel64/lib
prepend-path LD_LIBRARY_PATH $debugger/iga/lib
prepend-path LD_LIBRARY_PATH $compiler/tbb/lib/intel64/gcc4.7
prepend-path LD_LIBRARY_PATH $compiler/mkl/lib/intel64_lin
prepend-path LD_LIBRARY_PATH $compiler/compiler/lib/intel64_lin
prepend-path LD_LIBRARY_PATH $compiler/ipp/lib/intel64
prepend-path LD_LIBRARY_PATH $compiler/mpi/mic/lib
prepend-path LD_LIBRARY_PATH $compiler/mpi/intel64/lib
prepend-path LD_LIBRARY_PATH $compiler/compiler/lib/intel64_lin
prepend-path LD_LIBRARY_PATH $compiler/compiler/lib/intel64
prepend-path MIC_LIBRARY_PATH $compiler/tbb/lib/mic
prepend-path MIC_LIBRARY_PATH $compiler/mkl/lib/intel64_lin_mic
prepend-path MIC_LIBRARY_PATH $compiler/compiler/lib/intel64_lin_mic
prepend-path MIC_LIBRARY_PATH $compiler/compiler/lib/mic
prepend-path MIC_LIBRARY_PATH $compiler/mpi/mic/lib
prepend-path CPATH $compiler/daal/include
prepend-path CPATH $compiler/tbb/include
prepend-path CPATH $compiler/mkl/include
prepend-path CPATH $compiler/ipp/include
prepend-path NLSPATH $debugger/gdb/intel64/share/locale/%l_%t/%N
prepend-path NLSPATH $debugger/gdb/intel64_mic/share/locale/%l_%t/%N
prepend-path NLSPATH $compiler/mkl/lib/intel64_lin/locale/%l_%t/%N
prepend-path NLSPATH $compiler/compiler/lib/intel64/locale/%l_%t/%N
prepend-path PATH $debugger/gdb/intel64_mic/bin
prepend-path PATH $compiler/mpi/intel64/bin
prepend-path PATH $compiler/bin/intel64
setenv PSTLROT $compiler/pstl
setenv TBBROOT $compiler/tbb
setenv GDB_CROSS $debugger/gdb/intel64_mic/bin/gdb-ia
setenv DAALROOT $compiler/daal
setenv MPM_LAUNCHER $debugger/mpm/mic/bin/start_mpm.sh
setenv INTEL_PYTHONHOME $debugger/python/intel64/
prepend-path CLASSPATH $compiler/daal/lib/daal.jar
prepend-path CLASSPATH $compiler/mpi/intel64/lib/mpi.jar
prepend-path INFOPATH $documentation/en/debugger//gdb-igfx/info/
prepend-path INFOPATH $documentation/en/debugger//gdb-mic/info/
prepend-path INFOPATH $documentation/en/debugger//gdb-ia/info/
setenv I_MPI_ROOT $compiler/mpi
setenv PKG_CONFIG_PATH $compiler/mkl/bin/pkgconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment