diff --git a/src/cuda/api/device.hpp b/src/cuda/api/device.hpp index 90195d56..4ff07c21 100644 --- a/src/cuda/api/device.hpp +++ b/src/cuda/api/device.hpp @@ -845,6 +845,11 @@ inline device_t get(id_t id) return wrap(id); } +inline device_t default_() +{ + return get(cuda::device::default_device_id); +} + /** * A named constructor idiom for a "dummy" CUDA device representing the CPU. *