Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Availability of ifx? #15

Open
h-vetinari opened this issue May 27, 2023 · 6 comments
Open

Availability of ifx? #15

h-vetinari opened this issue May 27, 2023 · 6 comments

Comments

@h-vetinari
Copy link
Member

Hey all

Since this feedstock repacks intel-fortran-rt, or:

Runtime for Intel® Fortran Compiler Classic and Intel® Fortran Compiler (Beta)

I'm wondering if it's also planned to repack ifort for conda-forge? For scipy, we've been stuck with using an unholy combination of MSVC+gfortran because there's no other available fortran compiler on windows in conda-forge. Now that scipy is switching to meson (which enforces a cleaner toolchain than this hack; details), we're really in need of a fortran compiler, and llvm-flang resp. LFortran aren't ready for primetime yet.

The reason I'm asking is that I cannot really imagine the usefulness of the intel fortran runtime in conda-forge, unless there are packages that require it, which would presumably be those that have been compiled with ifort.

Thanks!

@napetrov
Copy link
Contributor

Hi @h-vetinari,
thanks for inquiry.
Runtime

  1. Think this is just part of all compiler runtimes distribution including C++ and SYCL.
  2. Initial aim was to provide runtimes for other applications build based on Intel Compilers so runtime dependency can be resolved via this package. So non necessary conda-forge build ecosystem but user ecosystem that relay on this runtime packages.

Compiler:

  1. Compiler itself is publicly available via apt/yum channels but there are additional steps were required for legal part of redistribution to conda. This was done for C++ and SYCL compilers. And technically can be done.
  2. ifort is old compiler that wouldn't be developed further, so it for sure wouldn't be deployed. But ifx is current replacement for ifort - so it probably have chances to get here if there would be enough interest for it.

This wouldn't be fast...

@h-vetinari
Copy link
Member Author

Hi @napetrov, thanks for the reply!

But ifx is current replacement for ifort - so it probably have chances to get here if there would be enough interest for it.

I wasn't aware how the new Fortran compiler is called, but this would be hugely helpful! Please let me know what I can do to make that case (including gathering feedback or support from conda-forge/core)

For context: We've had big problems serving packages with Fortran components (mainly on windows), because we have no compilers available for that in conda-forge, except gfortran-through-MinGW, which comes with a long list of headaches though.

Having a production grade compiler available in our infrastructure would be incredibly beneficial.

@h-vetinari h-vetinari changed the title Availability of ifort? Availability of ifx? May 29, 2023
@rgommers
Copy link

Having a production grade compiler available in our infrastructure would be incredibly beneficial.

+1. I'd also add that this would make it a lot easier to use ifx in CI of mainstream packages like SciPy, especially on Windows. The separate installers and .bat scripts that Intel provides aren't really workable; a simple conda install ifx (or intel-compilers) would be way easier. As a data point, I did put time into that at scipy/scipy#16957, but it was too painful to finish.

@Krande
Copy link

Krande commented Mar 19, 2024

@h-vetinari Any news on adding support for ifx?
If it is only a matter of someone needing to spend some time on this, I would be able to dedicate time for this in the coming weeks.

We've been working on adding windows support for the Code Aster feedstock, and right now it seems like a MSVC compatible Fortran compiler is the only missing piece. I have managed to compile locally with ifx using the intel oneAPI fortran 2024.0 and would be happy to try to help adding ifx support on conda-forge

@h-vetinari
Copy link
Member Author

Since the compiler sources are not available, only intel can provide ifx; we have no way to build it ourselves. In the meantime, you can try using flang 17 or 18 as a MSVC-compatible compiler on windows. It's what we're using for SciPy for example (background).

@Krande
Copy link

Krande commented Mar 20, 2024

Thank you for the response!

Okay, then I'll shift my efforts to the flang compiler.

(A really interesting article btw.)

Best Regards
Kristoffer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants