PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
atomics.hpp
Go to the documentation of this file.
1 
12 #ifndef PLSSVM_BACKENDS_SYCL_DETAIL_ATOMICS_HPP_
13 #define PLSSVM_BACKENDS_SYCL_DETAIL_ATOMICS_HPP_
14 #pragma once
15 
16 #include "sycl/sycl.hpp" // sycl::atomic_ref, sycl::memory_order, sycl::memory_scope, sycl::access::address_space
17 
19 
24 template <typename T>
25 using atomic_op = ::sycl::atomic_ref<T, ::sycl::memory_order::relaxed, ::sycl::memory_scope::device, ::sycl::access::address_space::global_space>;
26 
27 } // namespace plssvm::sycl
28 
29 #endif // PLSSVM_BACKENDS_SYCL_DETAIL_ATOMICS_HPP_
Namespace containing the C-SVM using the SYCL backend with the preferred SYCL implementation....
Definition: atomics.hpp:18
::sycl::atomic_ref< T, ::sycl::memory_order::relaxed, ::sycl::memory_scope::device, ::sycl::access::address_space::global_space > atomic_op
Shortcut alias for a sycl::atomic_ref targeting global memory.
Definition: atomics.hpp:25