-
Notifications
You must be signed in to change notification settings - Fork 741
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
Configuring with Trilinos
somehow adds cuda flags on expanse
#14711
Comments
@marcfehling We do not set any of these flags by hand. In order to figure out where it is coming from, would you mind commenting out the check in |
This very clearly looks like |
What does the |
I no longer have the build directory to check it, but I found this particular line in my Trilinos installation which is likely the cause:
I will install Trilinos again setting |
Interesting. I have configured
Maybe it's bug in Trilinos that has been fixed in more recent releases? I will check. |
I tried to configure |
Attached you'll find the detailed.log from my most recent minimal configuration, which contains the entry dealii/cmake/modules/FindDEAL_II_TRILINOS.cmake Lines 177 to 178 in 069d370
This detailed-old.log is from the installation I used before the last release. |
In deal.II we pick up these flags from
Adding So why do we, or rather Trilinos, pick up |
I just tried with
and
doesn't print anything for me. |
This seems to only occur when you are using clang. Did you configure with clang? |
OK. With
which looks OK. |
Interesting. So there is no Let me double check my configuration for |
I checked Kokkos commit history. This used to be a problem and has been fixed with Kokkos 3.3 in kokkos/kokkos#3387. Trilinos 13.0 uses Kokkos 3.1.1. Trilinos 13.2 uses Kokkos 3.4.01. Trilinos 13.4 uses Kokkos 3.6.0. Should we warn users about this? Maybe add an error for |
Ah, I checked with a |
For standalone |
I tried to compile deal.II with the legacy Configuration succeeds, but compiling deal.II now complains about a missing
UPDATE: Problem also exists with |
I just tried myself with 13.4.1 and
when running |
Where do I find it? I do not see these lines in the console output of neither dealii nor Trilinos, even after starting in a fresh build directory. expanse provides cmake version 3.18.2. |
@tamiko added interface targets for all dependencies in a recent pull request and you should see such an output when configuring |
I worked on the master branch from Jan 22 which didn't contain this feature yet. I had to check out the branch of #14738 to run the dealii configuration and got:
Luckily, the |
I tried to compile the current master on
expanse
in a configuration I left otherwise unchanged since the last release, but now cmake complains about CUDA although I never instructed it to touch CUDA.I could boil the problem down to the following configuration with
Trilinos
:NOTE: I used the
aocc
compiler (based onclang
) and I had to pass the MPI wrappers as compilers since cmake had trouble to find the mpi libraries otherwise. I used the same compiler to build Trilinos.NOTE: When compiling deal.II with
gcc
using the same installation of Trilinos (built with aocc), the same CUDA error occurs.Configuration succeeds until cmake compiles an example program to check for usable flags. This is the cmake output:
This is the error message in
CMakeFiles/CMakeError.log
:I noticed the
-x cuda
flag that somehow snug into the CXX flags list, although I never intended nor specified to configure deal.II with CUDA.ccmake
states that bothDEAL_II_WITH_CUDA
andDEAL_II_MPI_WITH_CUDA_SUPPORT
are set to OFF. Further,DEAL_II_ALLOW_PLATFORM_INTROSPECTION
andDEAL_II_ALLOW_AUTODETECTION
are ON by default.Any ideas? Since I could compile deal.II with the same installation before, I marked this issue as a bug, but it can always be possible that I screwed something up. This is my Trilinos configuration:
The text was updated successfully, but these errors were encountered: