archspec / archspec-json

Other
20 stars 33 forks source link

Add oneapi compiler #47

Closed glennpj closed 2 years ago

glennpj commented 2 years ago

This PR adds the oneapi and dpcpp compilers to archspec. These compilers are Intel's latest generation compilers and have similar options to the classic Intel compilers. As such, the entries here are based on the intel entires.

Note: I also added entries, including for intel, to the zen3 block. If there was a reason that the intel compiler was not there then the new entries in that section will need to be removed.

glennpj commented 2 years ago

I think I have fully corrected my copy/paste error.

glennpj commented 2 years ago

Yea, I still have something wrong in there.

glennpj commented 2 years ago

This does not actually work in spack.

==> [2022-05-20-15:44:52.172974] Applied patch /opt/packages/gpjohnsn/spack/var/spack/repos/builtin/packages/zlib/configure-cc.patch
==> [2022-05-20-15:44:51.966366] [TOOLCHAIN] MATCH Dpcpp
==> [2022-05-20-15:44:51.966504] [TOOLCHAIN] MATCH Oneapi
==> [2022-05-20-15:44:51.966542] [TOOLCHAINS] {'Dpcpp', 'Oneapi'}
==> [2022-05-20-15:44:51.966577] microarchitecture specific optimizations are not supported yet on mixed compiler toolchains [check oneapi@2021.1.2 for further details]

The binaries for oneapi and dpcpp are the same for CC, F77, and FC. The only difference is CXX

glennpj commented 2 years ago

I can patch spack to get it to ignore the two toolchains. So, I think this PR is ready and spack will need a separate PR.

@alalazo Let me know how you want to coordinate that. I guess there is no point in patching spack until this is picked up by it.