Provides functions to get an alpaka queue from a device index or a device object.
More...
#include "CLUEstering/core/detail/defines.hpp"
#include "CLUEstering/detail/concepts.hpp"
#include <concepts>
#include <alpaka/alpaka.hpp>
Go to the source code of this file.
|
template<std::integral TIdx> |
clue::Queue | clue::get_queue (TIdx device_id=TIdx{}) |
| Get an alpaka queue created from a device correspoding to a given index.
|
|
template<detail::concepts::device TDevice> |
clue::Queue | clue::get_queue (const TDevice &device) |
| Get an alpaka queue created from a given device.
|
|
Provides functions to get an alpaka queue from a device index or a device object.
- Authors
- Simone Balducci, Felice Pantaleo, Marco Rovere, Wahid Redjeb, Aurora Perego, Francesco Giacomini
◆ get_queue() [1/2]
template<detail::concepts::device TDevice>
clue::Queue clue::get_queue |
( |
const TDevice & | device | ) |
|
|
inline |
Get an alpaka queue created from a given device.
- Template Parameters
-
TDevice | The type of the device, must satisfy the concepts::device concept |
- Parameters
-
device | The device to create the queue from |
- Returns
- An alpaka queue created from the given device
◆ get_queue() [2/2]
template<std::integral TIdx>
clue::Queue clue::get_queue |
( |
TIdx | device_id = TIdx{} | ) |
|
|
inline |
Get an alpaka queue created from a device correspoding to a given index.
- Template Parameters
-
TIdx | The type of the device index, must be an integral type |
- Parameters
-
device_id | The index of the device |
- Returns
- An alpaka queue created from the device corresponding to the given index