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

CUDA compile error #1128

Closed
ibaned opened this issue Sep 27, 2017 · 0 comments
Closed

CUDA compile error #1128

ibaned opened this issue Sep 27, 2017 · 0 comments
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Milestone

Comments

@ibaned
Copy link
Contributor

ibaned commented Sep 27, 2017

Not quite sure what introduced this, but its fairly recent:

/home/daibane/src/Trilinos/kokkos/core/src/Kokkos_View.hpp(1223): warning: calling a __host__ function from a __host__ __device__ function is not allowed
          detected during:
            instantiation of "void Kokkos::View<DataType, Properties...>::assign_data(Kokkos::View<DataType, Properties...>::pointer_type) [with DataType=int ***, Properties=<Kokkos::Serial::array_layout, Kokkos::Device<Kokkos::HostSpace::execution_space, Kokkos::HostSpace::memory_space>, Kokkos::MemoryManaged>]" 
/home/daibane/src/Trilinos/kokkos/core/unit_test/TestViewSubview.hpp(1310): here
            instantiation of "void TestViewSubview::TestUnmanagedSubviewReset<Space>::operator()(int) const [with Space=Kokkos::Serial]" 
/home/daibane/src/Trilinos/kokkos/core/src/Kokkos_Serial.hpp(383): here
            instantiation of "std::enable_if<std::is_same<TagType, void>::value, void>::type Kokkos::Impl::ParallelFor<FunctorType, Kokkos::RangePolicy<Traits...>, Kokkos::Serial>::exec<TagType>() const [with FunctorType=TestViewSubview::TestUnmanagedSubviewReset<Kokkos::Serial>, Traits=<Kokkos::Serial::execution_space>, TagType=void]" 
/home/daibane/src/Trilinos/kokkos/core/src/Kokkos_Serial.hpp(402): here
            instantiation of "void Kokkos::Impl::ParallelFor<FunctorType, Kokkos::RangePolicy<Traits...>, Kokkos::Serial>::execute() const [with FunctorType=TestViewSubview::TestUnmanagedSubviewReset<Kokkos::Serial>, Traits=<Kokkos::Serial::execution_space>]" 
/home/daibane/src/Trilinos/kokkos/core/src/Kokkos_Parallel.hpp(191): here
            instantiation of "void Kokkos::parallel_for(const ExecPolicy &, const FunctorType &, const std::string &, Kokkos::Impl::enable_if<<expression>, void>::type *) [with ExecPolicy=Kokkos::RangePolicy<Kokkos::Serial::execution_space>, FunctorType=TestViewSubview::TestUnmanagedSubviewReset<Kokkos::Serial>]" 
/home/daibane/src/Trilinos/kokkos/core/unit_test/TestViewSubview.hpp(1328): here
            instantiation of "void TestViewSubview::test_unmanaged_subview_reset<Space>() [with Space=Kokkos::Serial]" 
/home/daibane/src/Trilinos/kokkos/core/unit_test/serial/TestSerial_SubView_c13.cpp(51): here

I have a fix and will put up a PR in a second

@ibaned ibaned added Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) DevelopOnly labels Sep 27, 2017
ibaned added a commit that referenced this issue Sep 27, 2017
@hcedwar hcedwar added this to the 2017 October milestone Sep 28, 2017
@crtrott crtrott closed this as completed Oct 28, 2017
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

3 participants