11 #include <raft/util/cudart_utils.hpp>
13 #include <cuda_runtime_api.h>
31 ~device_setter() { RAFT_CUDA_TRY_NO_THROW(cudaSetDevice(prev_device_.value())); }
Definition: buffer.hpp:24
void cuda_check(error_t const &err) noexcept(!GPU_ENABLED)
Definition: cuda_check.hpp:15
device_type
Definition: device_type.hpp:7
~device_setter()
Definition: gpu.hpp:31
device_setter(raft_proto::device_id< device_type::gpu > device) noexcept(false)
Definition: gpu.hpp:21