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

simple test program fails using 3rdparty Eigen library #309

Closed
finkandreas opened this issue Oct 3, 2018 · 1 comment
Closed

simple test program fails using 3rdparty Eigen library #309

finkandreas opened this issue Oct 3, 2018 · 1 comment

Comments

@finkandreas
Copy link

I'm trying to compile this:

#include "KokkosBatched_Vector_SIMD.hpp"
#include "Eigen/Core"

int main() {
  return 0;
} 

The problem here is that KokkosBatched_Vector_SIMD.hpp moves a #include <immintrin.h> inside the KokkosBatched::Experimental namespace. Thus the include of Eigen/Core will result in an error, because it's also using intrinsic functions (which are now inside the namespace).
I would suggest that you move the include of the intrinsic functions outside of the namespace.

hcedwar added a commit to hcedwar/kokkos-kernels that referenced this issue Oct 3, 2018
srajama1 added a commit that referenced this issue Oct 3, 2018
@hcedwar
Copy link
Contributor

hcedwar commented Oct 3, 2018

re #310, oops

ndellingwood added a commit that referenced this issue Oct 3, 2018
Issue #309 Fix to have namespace open/close inside #if/#endif
@crtrott crtrott closed this as completed Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants