-
Notifications
You must be signed in to change notification settings - Fork 564
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
Kokkos: Multiple definition link errors #10830
Comments
@vqd8a that is interesting. That suggests that you can't list the same |
NOTE: I added this Issue to the Trilinos TriBITS Refactor Project just in case this is related to the recent merge of updated TriBITS from PR #10614 and will be addressed as part of #10774. |
There is a |
@bartlettroscoe There are no duplications in the make line anymore:
But I don't understand why using |
Now that you mention it, I remember that option is getting set in the CUDA Trilinos builds.
Not sure why that would be generating duplicate libraries. That will take some investigation.
If you will only be building against Trilinos versions after the merge of #10614, then yes. However, if you want to also build against older versions of Trilinos, then keep using that same set of vars that you are. In any case, set |
@vqd8a, if you are okay to refactor to use |
I will switch to use |
Bug Report
@trilinos/kokkos
@trilinos/kokkos-kernels
@bartlettroscoe
Description
I am compiling my application code against Adelus and get these errors:
This is the link line when I tried
make -j VERBOSE=1
Looking at the link line, I see the same static libraries (e.g.
libkokkoskernels.a
,libkokkoscore.a
, ...) appear on the link line multiple times. If I remove the duplicate *.a files in the above make line, like below, and manually run it, it works:I am not sure what cause these errors and what I am missing when building Trilinos.
Steps to Reproduce
Use the Trilinos develop branch on Weaver
Trilinos configure script (should be changed to .sh): build-trilinos.txt
Application code (should be changed to .cpp) : adelus_driver.txt
Application code's CMakeLists.txt: CMakeLists.txt
Steps:
make -j install
cmake -DTrilinos_DIR=~/Trilinos/install/include .
make -j VERBOSE=1
The text was updated successfully, but these errors were encountered: