User Tools

Site Tools


intel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
intel [2022/03/07 11:02] – created nicointel [2024/01/22 04:12] (current) nico
Line 1: Line 1:
-The Intel compiler is available on Magi. You can use it to compile your sequential and MPI codes. First you must load Intel modules :+The Intel compiler is available on Magi. You can use it to compile your sequential and MPI codes. First you must load Intel modules. Both 2022.0.2 and 2024.0.1 are available.
  
-   nicolas.greneche@magi3:~$ module load /softs/modules/intel/compiler/2022.0.2 +You can choose one of them with 'module use' command. For 2022.0.2 : 
-   nicolas.greneche@magi3:~$ module load /softs/modules/intel/mkl/2022.0.2 + 
-   nicolas.greneche@magi3:~$ module load /softs/modules/intel/mpi/2021.5.1+   nicolas.greneche@magi3:~$ module use /softs/modules/intel-2022.1.2
 + 
 +And for 2024.0.1 : 
 + 
 +   nicolas.greneche@magi3:~$ module use /softs/modules/intel-2024.0.1/ 
 + 
 +You also need to update your environement with : 
 + 
 +   nicolas.greneche@magi3:~$ export MODULES_AUTO_HANDLING=1 
 + 
 +To enable auto loading of dependencies for 2024.0.1. 
 + 
 +Then you can enable Intel tools this way (here is compiler, mkl and mpi) : 
 + 
 +   nicolas.greneche@magi3:~$ module load compiler/latest 
 +   nicolas.greneche@magi3:~$ module load mkl/latest 
 +   nicolas.greneche@magi3:~$ module load mpi/latest 
 +    
 +Instead of 'latest' you can target a specific version of the tool.
  
 Then, you can use **icc** of **mpicc** to compile sequential codes : Then, you can use **icc** of **mpicc** to compile sequential codes :
Line 35: Line 53:
    #SBATCH --ntasks-per-node=40    #SBATCH --ntasks-per-node=40
    #SBATCH --partition=COMPUTE    #SBATCH --partition=COMPUTE
 +   
    module load /softs/modules/intel/compiler/2022.0.2    module load /softs/modules/intel/compiler/2022.0.2
    module load /softs/modules/intel/mkl/2022.0.2    module load /softs/modules/intel/mkl/2022.0.2
    module load /softs/modules/intel/mpi/2021.5.1    module load /softs/modules/intel/mpi/2021.5.1
 +   
    export I_MPI_PMI_LIBRARY=/opt/slurm/lib/libpmi.so    export I_MPI_PMI_LIBRARY=/opt/slurm/lib/libpmi.so
 +   
    srun /softs/vasp.5.4.4.pl2/bin/vasp_std    srun /softs/vasp.5.4.4.pl2/bin/vasp_std
intel.1646647356.txt.gz · Last modified: 2022/03/07 11:02 by nico