diff --git a/cpp/bench/prims/neighbors/knn.cuh b/cpp/bench/prims/neighbors/knn.cuh index 8dabe5dc46..4a48855a82 100644 --- a/cpp/bench/prims/neighbors/knn.cuh +++ b/cpp/bench/prims/neighbors/knn.cuh @@ -92,7 +92,7 @@ struct device_resource { public: explicit device_resource(bool managed) : managed_(managed ? std::make_shared() : nullptr), - res_(managed ? managed.get() : raft::resource::get_current_device_resource_ref()) + res_(managed ? managed_.get() : raft::resource::get_current_device_resource_ref()) { }