Skip to content

Commit

Permalink
device_matrix_view_from_host patch for Grace
Browse files Browse the repository at this point in the history
  • Loading branch information
viclafargue committed Dec 10, 2024
1 parent e1a5708 commit cbe786a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/neighbors/detail/cagra/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class device_matrix_view_from_host {
cudaPointerAttributes attr;
RAFT_CUDA_TRY(cudaPointerGetAttributes(&attr, host_view.data_handle()));
device_ptr = reinterpret_cast<T*>(attr.devicePointer);
if (device_ptr == NULL) {
if (attr.type != cudaMemoryTypeDevice && attr.type != cudaMemoryTypeManaged) {
// allocate memory and copy over
// NB: We use the temporary "large" workspace resource here; this structure is supposed to
// live on stack and not returned to a user.
Expand Down

0 comments on commit cbe786a

Please sign in to comment.