Skip to content

Instantly share code, notes, and snippets.

@yuhangwang
Last active January 30, 2020 19:53
Show Gist options
  • Select an option

  • Save yuhangwang/db05aa774a360258c004ee0b34cdf0dd to your computer and use it in GitHub Desktop.

Select an option

Save yuhangwang/db05aa774a360258c004ee0b34cdf0dd to your computer and use it in GitHub Desktop.

Revisions

  1. yuhangwang revised this gist Jan 30, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gnu-intel-linking.md
    Original file line number Diff line number Diff line change
    @@ -31,4 +31,5 @@

    References
    - https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
    - https://software.intel.com/en-us/mpi-developer-reference-linux-compilation-commands
    - https://software.intel.com/en-us/mpi-developer-reference-linux-compilation-commands
    - https://www.tablesgenerator.com/markdown_tables
  2. yuhangwang revised this gist Jan 30, 2020. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions gnu-intel-linking.md
    Original file line number Diff line number Diff line change
    @@ -22,12 +22,12 @@
    * If you are using a non-default MPI, assign the same appropriate value to MKL_BLACS_MPI on all nodes. Set MKL_BLACS_MPI variable to one of the following values: INTELMPI, MPICH2 or MSMPI.

    ### Intel's GNU compiler wrapper
    | wrapper | GNU | Lanuage | | |
    |---------|----------|------------|---|---|
    | mpicc | gcc | C | | |
    | mpigxx | g++ | C/C++ | | |
    | mpif77 | f77 | Fortran 77 | | |
    | mpif90 | gfortran | Fortran 95 | | |
    | wrapper | GNU | Lanuage |
    |---------|----------|------------|
    | mpicc | gcc | C |
    | mpigxx | g++ | C/C++ |
    | mpif77 | f77 | Fortran 77 |
    | mpif90 | gfortran | Fortran 95 |

    References
    - https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
  3. yuhangwang revised this gist Jan 30, 2020. 1 changed file with 11 additions and 2 deletions.
    13 changes: 11 additions & 2 deletions gnu-intel-linking.md
    Original file line number Diff line number Diff line change
    @@ -16,10 +16,19 @@

    compiler option: -m64 -I${MKLROOT}/include

    Notes:
    **Notes:**
    * Set the INCLUDE, MKLROOT, LD_LIBRARY_PATH, LIBRARY_PATH, CPATH and NLSPATH environment variables in the command shell using one of mklvars script files in the 'bin' subdirectory of the Intel(R) MKL installation directory. Please see also the Intel(R) MKL User Guide.
    * Please be sure that you have used the recommended compiler options for the selected interface layer. Caution: linking Intel(R) MKL libraries with your objects compiled for different interface layer may lead to run-time errors.
    * If you are using a non-default MPI, assign the same appropriate value to MKL_BLACS_MPI on all nodes. Set MKL_BLACS_MPI variable to one of the following values: INTELMPI, MPICH2 or MSMPI.

    ### Intel's GNU compiler wrapper
    | wrapper | GNU | Lanuage | | |
    |---------|----------|------------|---|---|
    | mpicc | gcc | C | | |
    | mpigxx | g++ | C/C++ | | |
    | mpif77 | f77 | Fortran 77 | | |
    | mpif90 | gfortran | Fortran 95 | | |

    References
    - https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
    - https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
    - https://software.intel.com/en-us/mpi-developer-reference-linux-compilation-commands
  4. yuhangwang revised this gist Jan 30, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gnu-intel-linking.md
    Original file line number Diff line number Diff line change
    @@ -17,9 +17,9 @@
    compiler option: -m64 -I${MKLROOT}/include

    Notes:
    o Set the INCLUDE, MKLROOT, LD_LIBRARY_PATH, LIBRARY_PATH, CPATH and NLSPATH environment variables in the command shell using one of mklvars script files in the 'bin' subdirectory of the Intel(R) MKL installation directory. Please see also the Intel(R) MKL User Guide.
    o Please be sure that you have used the recommended compiler options for the selected interface layer. Caution: linking Intel(R) MKL libraries with your objects compiled for different interface layer may lead to run-time errors.
    o If you are using a non-default MPI, assign the same appropriate value to MKL_BLACS_MPI on all nodes. Set MKL_BLACS_MPI variable to one of the following values: INTELMPI, MPICH2 or MSMPI.
    * Set the INCLUDE, MKLROOT, LD_LIBRARY_PATH, LIBRARY_PATH, CPATH and NLSPATH environment variables in the command shell using one of mklvars script files in the 'bin' subdirectory of the Intel(R) MKL installation directory. Please see also the Intel(R) MKL User Guide.
    * Please be sure that you have used the recommended compiler options for the selected interface layer. Caution: linking Intel(R) MKL libraries with your objects compiled for different interface layer may lead to run-time errors.
    * If you are using a non-default MPI, assign the same appropriate value to MKL_BLACS_MPI on all nodes. Set MKL_BLACS_MPI variable to one of the following values: INTELMPI, MPICH2 or MSMPI.

    References
    - https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
  5. yuhangwang revised this gist Jan 30, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gnu-intel-linking.md
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,10 @@

    compiler option: -m64 -I${MKLROOT}/include

    Notes:
    o Set the INCLUDE, MKLROOT, LD_LIBRARY_PATH, LIBRARY_PATH, CPATH and NLSPATH environment variables in the command shell using one of mklvars script files in the 'bin' subdirectory of the Intel(R) MKL installation directory. Please see also the Intel(R) MKL User Guide.
    o Please be sure that you have used the recommended compiler options for the selected interface layer. Caution: linking Intel(R) MKL libraries with your objects compiled for different interface layer may lead to run-time errors.
    o If you are using a non-default MPI, assign the same appropriate value to MKL_BLACS_MPI on all nodes. Set MKL_BLACS_MPI variable to one of the following values: INTELMPI, MPICH2 or MSMPI.

    References
    - https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
  6. yuhangwang revised this gist Jan 30, 2020. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gnu-intel-linking.md
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,8 @@
    -lmkl_blacs_intelmpi_lp64
    -lgomp -lpthread -lm -ldl

    compiler option: -m64 -I${MKLROOT}/include
    compiler option: -m64 -I${MKLROOT}/include


    References
    - https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor
  7. yuhangwang created this gist Jan 30, 2020.
    17 changes: 17 additions & 0 deletions gnu-intel-linking.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    ## GNU Fortran compiler
    -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed
    -lmkl_scalapack_lp64 -lmkl_gf_lp64
    -lmkl_gnu_thread -lmkl_core -lmkl_blacs_intelmpi_lp64
    -lgomp -lpthread -lm -ldl

    compiler option: -m64 -I${MKLROOT}/include


    ## GNU C Compiler
    -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed
    -lmkl_scalapack_lp64 -lmkl_intel_lp64
    -lmkl_gnu_thread -lmkl_core
    -lmkl_blacs_intelmpi_lp64
    -lgomp -lpthread -lm -ldl

    compiler option: -m64 -I${MKLROOT}/include