Skip to content

Instantly share code, notes, and snippets.

View wphicks's full-sized avatar

William Hicks wphicks

  • NVIDIA
  • Gainesville, FL
View GitHub Profile
@wphicks
wphicks / uncopyable.log
Created September 22, 2023 14:23
SFINAE error from raft::copy(res, some_int, other_int)
/home/whicks/proj_raft/raft/cpp/test/core/mdspan_copy.cpp: In member function 'virtual void raft::MDSpanCopy_Uncopyable_Test::TestBody()':
/home/whicks/proj_raft/raft/cpp/test/core/mdspan_copy.cpp:34:13: error: no matching function for call to 'copy(raft::resources&, int&, int&)'
34 | raft::copy(res, uncopyable1, uncopyable2);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/whicks/proj_raft/raft/cpp/include/raft/core/interruptible.hpp:26,
from /home/whicks/proj_raft/raft/cpp/include/raft/core/stream_view.hpp:20,
from /home/whicks/proj_raft/raft/cpp/include/raft/core/resource/stream_view.hpp:19,
from /home/whicks/proj_raft/raft/cpp/include/raft/core/detail/copy.hpp:26,
from /home/whicks/proj_raft/raft/cpp/include/raft/core/copy.hpp:18,
from /home/whicks/proj_raft/raft/cpp/test/core/mdspan_copy.cpp:20:
@wphicks
wphicks / uncopyable2.log
Created September 22, 2023 14:32
SFINAE error from raft::copy(res, some_const_mdspan, other_mdspan)
/home/whicks/proj_raft/raft/cpp/test/core/mdspan_copy.cpp: In member function 'virtual void raft::MDSpanCopy_Uncopyable_Test::TestBody()':
/home/whicks/proj_raft/raft/cpp/test/core/mdspan_copy.cpp:34:13: error: no matching function for call to 'copy(raft::resources&, std::experimental::mdspan<const float, std::experimental::extents<unsigned int, 18446744073709551615>, std::experimental::layout_right, raft::host_device_accessor<std::experimental::default_accessor<const float>, raft::memory_type::host> >, raft::mdarray<float, std::experimental::extents<unsigned int, 18446744073709551615>, std::experimental::layout_right, raft::host_device_accessor<raft::host_vector_policy<float, std::allocator<float> >, raft::memory_type::host> >&)'
34 | raft::copy(res, std::as_const(out).view(), in);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/whicks/proj_raft/raft/cpp/include/raft/core/interruptible.hpp:26,
from /home/whicks/proj_raft/raft/cpp/include/raft/core/st