-
Notifications
You must be signed in to change notification settings - Fork 39
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
Compilation errors with Intel compiler #123
Comments
Hey @drtpotter - Would you be able to give this fork a try : https://github.com/fluidnumerics-joe/hipfort/tree/patch-1 |
@fluidnumerics-joe Thanks for submitting the patch! We are testing it internally and will update when testing is complete. |
Hey @fluidnumerics-joe, I gave the patch a try but it needed some additional work to avoid failing at the cmake configure step. cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/hipfort_intel/5.7.1 -DHIPFORT_COMPILER=ifort -DCMAKE_C_COMPILER="icx" -DCMAKE_CXX_COMPILER="icpx" -DCMAKE_Fortran_COMPILER="ifort" .. make
...
[ 6%] Building Fortran object lib/CMakeFiles/hipfort-amdgcn.dir/hipfort/hipfort_hipmalloc.f.o
ifort: command line warning #10006: ignoring unknown option '-fno-underscoring'
ifort: command line remark #10148: option '-vec-report0' not supported
/netsoft/src/hipfort/lib/hipfort/hipfort_hipmalloc.f(1007): error #6911: The syntax of this substring is invalid. [PTR]
ptr(LBOUND(dsource,1):,LBOUND(dsource,2):) => tmp
--------^
compilation aborted for /netsoft/src/hipfort/lib/hipfort/hipfort_hipmalloc.f (code 1)
make[2]: *** [lib/CMakeFiles/hipfort-amdgcn.dir/build.make:231: lib/CMakeFiles/hipfort-amdgcn.dir/hipfort/hipfort_hipmalloc.f.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: lib/CMakeFiles/hipfort-amdgcn.dir/all] Error 2
make: *** [Makefile:156: all] Error 2 It seems strange to me that gfortan would compile this file ok but ifort does not. Any help or suggestions greatly appreciated! |
The hipfort project does not officially support the Intel Fortran compiler. However, I'm happy to accept patches from the community to fix any issues found on unsupported platforms, as long as they don't negatively impact the library as built with flang or gfortran. I will wait on merging Joe's PR since it looks like this is still a work-in-progress. |
@drtpotter @cgmb |
Hey @domcharrier , thanks for the heads up here. Where is the hipfort code generator ? If it's not in the repository, care to share it in a |
@fluidnumerics-joe The code generator is currently a private project. As the owner, it's up to @cgmb to decide if we make it public. |
Either sounds fine. |
My preference is to open-source the generator code. However, it requires a fair bit of work first. |
Sounds great Cory, looking forward to it! The ability to use other compilers will most certainly make this library more valuable/useful. |
@cgmb @domcharrier - has the provided patch been integrated into the code generator ? |
Hi there,
I'm trying to compile hipfort using the Intel compiler on the hipfort develop branch and getting a few issues. One of them I cannot get around.
These lines, starting at CMakeLists.txt:113, breaks the cmake configuration because the added flags
-std=f2003
and-std=f2008
are not valid arguments on the Intel Fortran compiler. Therefore testing of command line arguments in a later step fails and cmake configuration halts with an error.If I delete the
-std
flags in CMakeLists.txt and use the following cmake compile options, then I can get past the cmake configuration step.running make then fails at this point.
The text was updated successfully, but these errors were encountered: