22 #include <raft/util/cudart_utils.hpp>
24 #include <cuda_runtime_api.h>
42 ~device_setter() { RAFT_CUDA_TRY_NO_THROW(cudaSetDevice(prev_device_.value())); }
Definition: buffer.hpp:35
void cuda_check(error_t const &err) noexcept(!GPU_ENABLED)
Definition: cuda_check.hpp:26
device_type
Definition: device_type.hpp:18
~device_setter()
Definition: gpu.hpp:42
device_setter(raft_proto::device_id< device_type::gpu > device) noexcept(false)
Definition: gpu.hpp:32