Queues, devices and events: helpers

Overview

String conversions and device predicates.

Functions

◆ to_string() [1/3]

std::string_view batchlas::to_string ( Policy v)
inlineconstexpr

Name of a Policy value.

Definition at line 67 of file sycl-device-queue.hh.

◆ to_string() [2/3]

std::string_view batchlas::to_string ( DeviceType v)
inlineconstexpr

Name of a DeviceType value.

Definition at line 77 of file sycl-device-queue.hh.

◆ to_string() [3/3]

std::string_view batchlas::to_string ( Vendor v)
inlineconstexpr

Name of a Vendor value.

Definition at line 90 of file sycl-device-queue.hh.

◆ operator<<() [1/3]

template<typename CharT, typename Traits>
std::basic_ostream< CharT, Traits > & batchlas::operator<< ( std::basic_ostream< CharT, Traits > & os,
Policy value )

Stream a Policy by name.

Definition at line 90 of file sycl-device-queue.hh.

◆ operator<<() [2/3]

template<typename CharT, typename Traits>
std::basic_ostream< CharT, Traits > & batchlas::operator<< ( std::basic_ostream< CharT, Traits > & os,
DeviceType value )

Stream a DeviceType by name.

Definition at line 90 of file sycl-device-queue.hh.

◆ operator<<() [3/3]

template<typename CharT, typename Traits>
std::basic_ostream< CharT, Traits > & batchlas::operator<< ( std::basic_ostream< CharT, Traits > & os,
Vendor value )

Stream a Vendor by name.

Definition at line 90 of file sycl-device-queue.hh.

◆ str_to_vendor()

Vendor batchlas::str_to_vendor ( std::string && v)
inline

Classify a SYCL vendor string (case-insensitive substring match).

Parameters
vthe vendor string, e.g. from sycl::info::device::vendor
Returns
the matching Vendor, or Vendor::OTHER

Definition at line 129 of file sycl-device-queue.hh.

◆ is_sm120_family()

bool batchlas::is_sm120_family ( int cuda_cc)
constexpr

True for consumer Blackwell (RTX 50xx / RTX PRO 6000, sm_120/121).

Parameters
cuda_cca value of Device::cuda_compute_capability()

Definition at line 169 of file sycl-device-queue.hh.