Skip to content
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

fatal error: Cuda/Kokkos_Cuda_abort.hpp: No such file or directory #157

Closed
ambrad opened this issue Dec 10, 2015 · 6 comments
Closed

fatal error: Cuda/Kokkos_Cuda_abort.hpp: No such file or directory #157

ambrad opened this issue Dec 10, 2015 · 6 comments
Assignees
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)

Comments

@ambrad
Copy link

ambrad commented Dec 10, 2015

I may be building the standalone Kokkos library incorrectly; apologies if this is user error. In any case, when I don't build --with-cuda, in my app I get this compiler error:

/include/impl/Kokkos_Error.hpp:49:38: fatal error: Cuda/Kokkos_Cuda_abort.hpp: No such file or directory

An example Kokkos build that gives this error is this one:

./generate_makefile.bash --with-openmp --with-serial --compiler=g++-4.7 --with-options=aggressive_vectorization --prefix=/home/ambradl/lib/kokkos/cpu

Thanks.

@crtrott
Copy link
Member

crtrott commented Dec 10, 2015

Ah I see the issue. It was introduced on 11/12, and is caused by a missing guard. That doesn't hurt in the case of an embedded build (where all the header files, including unused execution spaces are always available), but it doesn't work for the actual TPL install, since that only installs files for the existing execution spaces. I'll fix it tomorrow and get it into the develop branch.

@crtrott crtrott added the Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) label Dec 10, 2015
@crtrott crtrott added this to the Pre Christmas Push milestone Dec 10, 2015
@crtrott crtrott self-assigned this Dec 10, 2015
crtrott added a commit that referenced this issue Dec 10, 2015
@crtrott
Copy link
Member

crtrott commented Dec 10, 2015

I pushed a fix to develop. Please let me know if it works for you (if you can work of the develop branch from kokkos). It will take a couple days to get it to Trilinos, since I have to run an integration cycle.

@ambrad
Copy link
Author

ambrad commented Dec 10, 2015

Yes, it works. Thanks.

@ambrad ambrad closed this as completed Dec 10, 2015
@crtrott
Copy link
Member

crtrott commented Dec 10, 2015

Reopening until we got it in master.

@crtrott crtrott reopened this Dec 10, 2015
@crtrott
Copy link
Member

crtrott commented Dec 10, 2015

And thanks for confirming so fast 👍

@crtrott
Copy link
Member

crtrott commented Dec 11, 2015

Pushed to master

@crtrott crtrott closed this as completed Dec 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Projects
None yet
Development

No branches or pull requests

2 participants