-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Cannot run Fortran test program while cross compiling #3417
Comments
@hurricane642 , thank you for trying the latest NVIDIA compilers! I tried them today and made them work for ubuntu GitHub Actions using this workflow. I hope this helps you to debug the cross-compilation issue. |
Dear @hyoklee , Unfortunately, it doesn't quite fit my case. The problem is that I need to use the
I haven't fully understood what is causing this error, but I risk guessing that during compilation it is trying to identify the CUDA of the device it is compiling on, and since I am running on an Apple Silicon, it is not finding it. Could you please advise what can be done in this case? |
@hurricane642 , thank you for your link to NVIDIA website and for mentioning |
The cross-compile changes we've made to the library are mainly for the C library. Fortran still runs programs at configure time. I'll see if we can engineer around that in time for 1.14.3. In the meantime, can you check if the C library builds for you without issues? Any cross-compile data points we can get are very useful. |
Hey,
|
Can you try again specifying --host= and let us know if that works? There should be cross-compile defaults for the Autotools. |
Moving this to 1.14.4. Making the Fortran wrappers work with cross-compiling is going to take some work. There's a lot of cross-compile improvements we should make between now and spring 2024, especially in CMake. |
Hey, I've tried to define it in this way:
I've reruned it's seveal times - result the same. Without this option error is different - the same as it was initially |
Hi, @hurricane642 , I think it's Docker + macos arm64 issue, not HDF5. I tested the latest HDF5 release with nvhpc 24.7. https://github.com/hyoklee/actions/actions/runs/10529181148/workflow May I close the ticket? |
Hm, ok, I'll try to dig into it a little more. Yes, we can close for now, thank you very much! If I'll meet any related problem, I'll open a new issue! |
Describe the bug
Dear developers,
I am trying to use NVIDIA compilers to build Docker image on 2 platforms - amd64 and arm64. The build is done on Apple Silicon (arm64):
As a result, I get the following error during compilation:
The error occurs only for the amd64 platform, everything works fine for arm64.
As far as I know, there is currently work being done to make HDF5 cross-compilation easier (for example #3104 ), so maybe you would have some useful information regarding my question? Any help would be appreciated!
Platform (please complete the following information)
docker buildx build -f Dockerfile_nvfortran --platform linux/arm64,linux/amd64 --no-cache -t usr/pkg:nvfortran --push .
The text was updated successfully, but these errors were encountered: