-
Notifications
You must be signed in to change notification settings - Fork 42
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
C/Fortran interface #7
Comments
it is on my todo list but I am a bit short-handed momentarily. I will keep you posted. Thanks for the interest. |
What is the status of this issue? |
open :) |
…uality constraints, inequality constraints. #7
@nychiang : how stage is the Fortran interface? |
On the platform with AMD GPU, some compiling error happened when This error prevents HiOp creating all the fortran related examples. |
More details: A quick solution is that we use @pelesh @cameronrutherford have you ever got similar problem like this? Can we use |
@nychiang, as far as I know we used a combination of clang C++ and gcc Fortran compilers to build HiOp with Fortran interface. My understanding is that ROCm bitcode library is specific to the clang intermediate representation and won't work with gcc. If flang is available and mature enough, one should go with that instead of combining different compilers imho. @ashermancinelli, please chime in. |
PR #514 adds a partial fix and allows using flang compiler on the problematic AMD/ROCm machine. Some investigation is needed to figure out use of gfortran. Nvidia/CUDA machines work fine with generic Fortran compilers. |
The following Fortran examples are given: |
This is great! But can the examples be written in modern Fortran? I don't think there is any reason to use the F77 format nowadays. Do you need some assistance with doing that? |
This is what I have in mind: https://github.com/jacobwilliams/hiop/blob/modern-fortran/src/Drivers/Dense/NlpDenseConsFEx1.f90 |
We would be supportive of also using more recent Fortran for examples. Please feel free to take a shot and PR, our experience with Fortran is limited. In the meanwhile I suggest we close this issue and open an issue re: examples in modern Fortran. |
Will close this and we track the developement of a more modern F examples in isssue #532 |
A C/Fortran interface to this would be great. I think it could be added in a similar way that Ipopt has done it.
The text was updated successfully, but these errors were encountered: