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

nvcc compiler warning: calling a __host__ function from a __host__ __device__ function is not allowed #180

Closed
ndellingwood opened this issue Feb 2, 2016 · 1 comment

Comments

@ndellingwood
Copy link
Contributor

Sample warning message (nvcc 7.5):

kokkos/core/src/KokkosExp_View.hpp(1352): warning: calling a host function from a host device function is not allowed

      detected during:
        instantiation of "Kokkos::Experimental::View<DataType, Properties...>::View(Kokkos::Experimental::View<DataType, Properties...>::pointer_type, size_t, size_t, size_t, size_t, size_t, size_t, size_t, size_t) [with DataType=int *, Properties=<Kokkos::Serial>]"

/ascldap/users/ndellin/kokkos/core/unit_test/TestViewMapping.hpp(622): here

        instantiation of "void Test::test_view_mapping<ExecSpace>() [with ExecSpace=Kokkos::Serial]"

/ascldap/users/ndellin/kokkos/core/unit_test/TestSerial.cpp(112): here

@ndellingwood
Copy link
Contributor Author

Fix submitted as issue 181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant