Skip to content

Hardcoded MKL path in easyblocks breaks starting with imkl 2021.x #2526

@SebastianAchilles

Description

@SebastianAchilles

In imkl < 2021 the libs are located in

$EBROOTIMKL/mkl/lib

This changed with imkl >= 2021 as a new directory structure was introduced which includes the version number:

$EBROOTIMKL/mkl/2021.2.0/lib

A handful of EasyBlocks use the following logic where the location of imkl is hardcoded:

imkl_root = get_software_root('imkl')
if imkl_root:
    imkl_include = os.path.join(imkl_root, 'mkl', 'include')

This breaks with imkl >= 2021. Instead these EasyBlocks should use:

imkl_root = get_software_root('imkl')
if imkl_root:
    imkl_include = os.path.join(os.getenv('MKLROOT'), 'mkl', 'include')

Affected EasyBlocks:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions