Intel编译器安装
2023-12-16
2分钟阅读时长
intel2018
1.先安装依赖
yum install -y gcc gcc-c++ gcc-gfortran pango gtk2.x86_64 xorg-x11-server-Xorg xorg-x11-apps xorg-x11-font-utils xorg-x11-fonts-Type1 xclock xorg-x11-xauth xorg-x11-utils xorg-x11-fonts-* libstdc++.i686 compat-libstdc+±33.i686 glibc-devel.i686 environment-modules
2.安装intel2018
解压安装包
cd /root/parallel_studio_xe_2018_update4_cluster_edition
./install.sh
#看提示选择
3.证书
http://pan.bitllion.top:88/d/jn/hpc/intel/intel.lic
4.配置环境变量
modulefile示例
#%Module1.0
module-whatis "Intel Parallel Studio."
proc ModulesHelp { } {
puts stderr "Intel Parallel Studio."
}
prepend-path LD_LIBRARY_PATH "/share/app/intel2018/lib"
prepend-path PATH "/share/app/intel2018/bin"
prepend-path MANPATH "/share/app/intel2018/man"
prepend-path CMAKE_PREFIX_PATH "/share/app/intel2018/"
prepend-path CPATH "/share/app/intel2018/include"
setenv ADVISOR_2018_DIR "/share/app/intel2018/advisor_2018.4.0.574144"
prepend-path CLASSPATH "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/lib/mpi.jar:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/daal/lib/daal.jar"
prepend-path CPATH "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/ipp/include:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mkl/include:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/pstl/include:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/tbb/include:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/tbb/include:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/daal/include"
setenv DAALROOT "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/daal"
setenv GDBSERVER_MIC "/share/app/intel2018/debugger_2018/gdb/targets/intel64/x200/bin/gdbserver"
setenv GDB_CROSS "/share/app/intel2018/debugger_2018/gdb/intel64/bin/gdb-ia"
prepend-path INFOPATH "/share/app/intel2018/documentation_2018/en/debugger//gdb-ia/info/:/share/app/intel2018/documentation_2018/en/debugger//gdb-igfx/info/"
setenv INSPECTOR_2018_DIR "/share/app/intel2018/inspector_2018.4.0.574143"
prepend-path INTEL_LICENSE_FILE "/share/app/intel2018/licenses:/opt/intel/licenses:/share/app/intel2018/intel/licenses:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/licenses:/opt/intel/licenses:/sh3/ysuanbase/home/yeesuan10000/intel/licenses"
setenv INTEL_PYTHONHOME "/share/app/intel2018/debugger_2018/python/intel64/"
setenv IPPROOT "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/ipp"
setenv I_MPI_ROOT "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi"
prepend-path LD_LIBRARY_PATH "/share/app/intel2018/itac/2018.4.025/intel64/slib:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/compiler/lib/intel64:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/compiler/lib/intel64_lin:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/lib:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/mic/lib:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/ipp/lib/intel64:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/compiler/lib/intel64_lin:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64_lin:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/tbb/lib/intel64/gcc4.1:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/tbb/lib/intel64/gcc4.1:/share/app/intel2018/debugger_2018/iga/lib:/share/app/intel2018/debugger_2018/libipt/intel64/lib:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/daal/lib/intel64_lin:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/daal/../tbb/lib/intel64_lin/gcc4.4"
prepend-path LIBRARY_PATH "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/ipp/lib/intel64:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/compiler/lib/intel64_lin:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64_lin:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/tbb/lib/intel64/gcc4.1:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/tbb/lib/intel64/gcc4.1:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/daal/lib/intel64_lin:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/daal/../tbb/lib/intel64_lin/gcc4.4"
setenv MKLROOT "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mkl"
setenv MPM_LAUNCHER "/share/app/intel2018/debugger_2018/mpm/mic/bin/start_mpm.sh"
prepend-path NLSPATH "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/compiler/lib/intel64/locale/%l_%t/%N:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64_lin/locale/%l_%t/%N:/share/app/intel2018/debugger_2018/gdb/intel64/share/locale/%l_%t/%N"
prepend-path PKG_CONFIG_PATH "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mkl/bin/pkgconfig"
setenv PSTLROOT "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/pstl"
prepend-path PYTHONPATH "/share/app/intel2018/advisor_2018.4.0.574144/pythonapi"
setenv TBBROOT "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/tbb"
setenv VT_ADD_LIBS "-ldwarf -lelf -lvtunwind -lm -lpthread"
setenv VT_ARCH "intel64"
setenv VT_LIB_DIR "/share/app/intel2018/itac/2018.4.025/intel64/lib"
setenv VT_MPI "impi4"
setenv VT_ROOT "/share/app/intel2018/itac/2018.4.025"
setenv VT_SLIB_DIR "/share/app/intel2018/itac/2018.4.025/intel64/slib"
prepend-path MANPATH "/share/app/intel2018/itac/2018.4.025/man:/share/app/intel2018/man/common:/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/man:/share/app/intel2018/documentation_2018/en/debugger//gdb-ia/man/:/share/app/intel2018/documentation_2018/en/debugger//gdb-igfx/man/:::"
append-path PATH "/share/app/intel2018/parallel_studio_xe_2018.4.057/bin"
prepend-path PATH "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/bin"
prepend-path PATH "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/bin/intel64"
prepend-path PATH "/share/app/intel2018/itac/2018.4.025/intel64/bin"
prepend-path PATH "/share/app/intel2018/itac/2018.4.025/intel64/bin"
prepend-path PATH "/share/app/intel2018/inspector_2018.4.0.574143/bin64"
prepend-path PATH "/share/app/intel2018/advisor_2018.4.0.574144/bin64"
setenv CC "/share/app/intel2018/bin/icc"
setenv CXX "/share/app/intel2018/bin/icpc"
setenv FC "/share/app/intel2018/bin/ifort"
setenv F77 "/share/app/intel2018/bin/ifort"
setenv F90 "/share/app/intel2018/bin/ifort"
setenv MPIFC "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/bin/mpif90"
setenv MPICXX "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/bin/mpicxx"
setenv MPIF77 "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/bin/mpif77"
setenv MPICC "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/bin/mpicc"
setenv MPIF90 "/share/app/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/bin/mpif90"
intel oneapi
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/20f4e6a1-6b0b-4752-b8c1-e5eacba10e01/l_BaseKit_p_2024.0.0.49564_offline.sh
chmod +x l_BaseKit_p_2024.0.0.49564_offline.sh
./l_BaseKit_p_2024.0.0.49564_offline.sh
如果是centos7 这种glibc比较老的系统,请安装intel2021
modulefile
#%Module1.0
## Module file created by spack (https://github.com/spack/spack) on 2022-10-27 14:22:59.410757
##
## [email protected]%[email protected] arch=linux-centos7-cascadelake/45kefy3
##
module-whatis "Intel oneAPI Compilers. Includes: icc, icpc, ifort, icx, icpx, ifx, and dpcpp."
proc ModulesHelp { } {
puts stderr "Intel oneAPI Compilers. Includes: icc, icpc, ifort, icx, icpx, ifx, and"
puts stderr "dpcpp. LICENSE INFORMATION: By downloading and using this software, you"
puts stderr "agree to the terms and conditions of the software license agreements at"
puts stderr "https://intel.ly/393CijO."
}
prepend-path LD_LIBRARY_PATH "/opt/intel/oneapi/compiler/2024.0/lib"
prepend-path CMAKE_PREFIX_PATH "/opt/intel/oneapi/compiler/2024.0/"
prepend-path ACL_BOARD_VENDOR_PATH "/opt/Intel/OpenCLFPGA/oneAPI/Boards"
setenv CMPLR_ROOT "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0"
prepend-path CPATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/include"
setenv FPGA_VARS_ARGS ""
setenv FPGA_VARS_DIR "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/oclfpga"
setenv INTELFPGAOCLSDKROOT "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/oclfpga"
prepend-path LD_LIBRARY_PATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib:/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/x64:/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/emu:/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/oclfpga/host/linux64/lib:/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/oclfpga/linux64/lib:/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/compiler/lib/intel64_lin"
prepend-path LIBRARY_PATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/compiler/lib/intel64_lin:/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib"
prepend-path OCL_ICD_FILENAMES "libintelocl_emu.so:libalteracl.so:/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/x64/libintelocl.so"
prepend-path PKG_CONFIG_PATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/lib/pkgconfig"
prepend-path MANPATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/documentation/en/man/common::"
prepend-path PATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/bin"
prepend-path PATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/bin/intel64"
prepend-path PATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/oclfpga/bin"
prepend-path PATH "/opt/intel/oneapi/compiler/2024.0/compiler/2021.4.0/linux/lib/oclfpga/llvm/aocl-bin"
prepend-path CMAKE_PREFIX_PATH "/opt/intel/oneapi/mpi/2021.11/"
prepend-path CLASSPATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//lib/mpi.jar"
prepend-path CPATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//include"
prepend-path FI_PROVIDER_PATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//libfabric/lib/prov:/usr/lib64/libfabric"
setenv I_MPI_ROOT "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0"
prepend-path LD_LIBRARY_PATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//libfabric/lib:/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//lib/release:/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//lib"
prepend-path LIBRARY_PATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//libfabric/lib:/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//lib/release:/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//lib"
prepend-path PKG_CONFIG_PATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0/lib/pkgconfig"
prepend-path MANPATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0/man:::"
prepend-path PATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//bin"
prepend-path PATH "/opt/intel/oneapi/mpi/2021.11/mpi/2021.4.0//libfabric/bin"
prepend-path LD_LIBRARY_PATH "/opt/intel/oneapi/mkl/2024.0/lib"
prepend-path CMAKE_PREFIX_PATH "/opt/intel/oneapi/mkl/2024.0/"
prepend-path CPATH "/opt/intel/oneapi/mkl/2024.0/mkl/2021.4.0/include"
prepend-path LD_LIBRARY_PATH "/opt/intel/oneapi/mkl/2024.0/mkl/2021.4.0/lib/intel64"
prepend-path LIBRARY_PATH "/opt/intel/oneapi/mkl/2024.0/mkl/2021.4.0/lib/intel64"
setenv MKLROOT "/opt/intel/oneapi/mkl/2024.0/mkl/2021.4.0"
prepend-path NLSPATH "/opt/intel/oneapi/mkl/2024.0/mkl/2021.4.0/lib/intel64/locale/%l_%t/%N"
prepend-path PKG_CONFIG_PATH "/opt/intel/oneapi/mkl/2024.0/mkl/2021.4.0/lib/pkgconfig"
prepend-path PATH "/opt/intel/oneapi/mkl/2024.0/mkl/2021.4.0/bin/intel64"
prepend-path LD_LIBRARY_PATH "/opt/intel/oneapi/tbb/2021.11/lib"
prepend-path CMAKE_PREFIX_PATH "/opt/intel/oneapi/tbb/2021.11/"
prepend-path CMAKE_PREFIX_PATH "/opt/intel/oneapi/tbb/2021.11/tbb/2021.4.0/env/.."
prepend-path CPATH "/opt/intel/oneapi/tbb/2021.11/tbb/2021.4.0/env/../include"
prepend-path LD_LIBRARY_PATH "/opt/intel/oneapi/tbb/2021.11/tbb/2021.4.0/env/../lib/intel64/gcc4.8"
prepend-path LIBRARY_PATH "/opt/intel/oneapi/tbb/2021.11/tbb/2021.4.0/env/../lib/intel64/gcc4.8"
prepend-path PKG_CONFIG_PATH "/opt/intel/oneapi/tbb/2021.11/tbb/2021.4.0/env/../lib/pkgconfig"
setenv TBBROOT "/opt/intel/oneapi/tbb/2021.11/tbb/2021.4.0/env/.."