Skip to content

intel-mkl external packages have incorrect paths #1

@aidanheerdegen

Description

@aidanheerdegen

When attempting to install petsc:

$ time spack install petsc %intel@2021.6.0 ^openmpi@4.1.4

got errors like this:

==> Warning: cannot perform the requested write operation on module files [Trying to source non-existing file: /apps/intel-mkl/2022.2.0/compilers_and_libraries/linux/mkl/bin/mklvars.sh]                                                                                                                                                                      

There is no directory /apps/intel-mkl. The intel-mkl libraries are installed under /apps/intel-ct/:

$ module show intel-mkl/2019.3.199
-------------------------------------------------------------------
/apps/Modules/modulefiles/intel-mkl/2019.3.199:

setenv          MKLROOT /apps/intel-ct/2019.3.199/mkl
prepend-path    LIBRARY_PATH /apps/intel-ct/2019.3.199/mkl/lib/intel64
prepend-path    LD_LIBRARY_PATH /apps/intel-ct/2019.3.199/mkl/lib/intel64
prepend-path    LD_RUN_PATH /apps/intel-ct/2019.3.199/mkl/lib/intel64
prepend-path    C_INCLUDE_PATH /apps/intel-ct/2019.3.199/mkl/include
prepend-path    CPLUS_INCLUDE_PATH /apps/intel-ct/2019.3.199/mkl/include
prepend-path    CPATH /apps/intel-ct/2019.3.199/mkl/include
prepend-path    FPATH /apps/intel-ct/2019.3.199/mkl/include
prepend-path    MANPATH /apps/intel-ct/2019.3.199/mkl/man
prepend-path    MANPATH /apps/intel-ct/2019.3.199/mkl/man/en_US
prepend-path    NLSPATH /apps/intel-ct/2019.3.199/mkl/lib/intel64/locale/en_US/%N
prepend-path    NLSPATH /apps/intel-ct/2019.3.199/mkl/lib/intel64/locale/%l_%t/%N
setenv          MKL /apps/intel-ct/2019.3.199/mkl
module-whatis   {Intel Math Kernel Library (MKL), version 2019.3.199}
conflict        intel-mkl
setenv          INTEL_MKL_BASE /apps/intel-ct/2019.3.199/mkl
setenv          INTEL_MKL_ROOT /apps/intel-ct/2019.3.199/mkl
setenv          INTEL_MKL_VERSION 2019.3.199
-------------------------------------------------------------------

The external packages are assumed to be in /apps/${PKGNAME}, so would need some method to customise that path for each package.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions