CLUEstering
High-performance density-based weighted clustering library developed at CERN
Loading...
Searching...
No Matches
get_queue.hpp File Reference

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.

Functions

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.
 

Detailed Description

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

Function Documentation

◆ 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
TDeviceThe type of the device, must satisfy the concepts::device concept
Parameters
deviceThe 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
TIdxThe type of the device index, must be an integral type
Parameters
device_idThe index of the device
Returns
An alpaka queue created from the device corresponding to the given index