Skip to content

Auto-enable Fortran oneAPI compilers #4455

@Flamefire

Description

@Flamefire

In the "intel-compilers" toolchain the icx/icpx oneAPI compilers for C/C++ are automatically enabled for some version (2022.2.0+):

# auto-enable use of oneAPI C/C++ compilers for sufficiently recent versions of Intel compilers
comp_ver = self.get_software_version(self.COMPILER_MODULE_NAME)[0]
if LooseVersion(comp_ver) >= LooseVersion('2022.2.0'):
if self.options.get('oneapi_c_cxx', None) is None:
self.options['oneapi_c_cxx'] = True

Why is that not done for Fortran? Why the split? Is it even possible to mix using oneAPI and classic compilers?

It might also be useful to have some toolchain option/flag whether the oneAPI compilers are available and/or used.
I'm wondering: Will at some point only the oneAPI compilers be used? How could we detect them / distinguish to the "classic" ones? This is required for some easyblocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions