dpctl.SyclDevice.has_aspect_atomic64

SyclDevice.has_aspect_atomic64

Returns True if the device supports a basic set of atomic operations, False otherwise.

Indicates that the device supports the following atomic operations on 64-bit values:

  • sycl::atomic_ref::load

  • sycl::atomic_ref::store

  • sycl::atomic_ref::fetch_add

  • sycl::atomic_ref::fetch_sub

  • sycl::atomic_ref::exchange

  • sycl::atomic_ref::compare_exchange_strong

  • sycl::atomic_ref::compare_exchange_weak

Example:
>>> import dpctl
>>> dev = dpctl.select_cpu_device()
>>> dev.has_aspect_atomic64
True
Returns:

Indicates that the device supports a basic set of atomic operations on 64-bit values.

Return type:

bool