PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Classes | Functions
plssvm::hipsycl::detail Namespace Reference

Namespace containing the C-SVM using the SYCL backend with hipSYCL as SYCL implementation. Should not directly be used by users. More...

Classes

class  device_ptr
 Small wrapper class around a hipSYCL device pointer together with commonly used device functions. More...
 
class  queue
 PImpl class to hide the SYCL queue class from the public interface (and, therefore, the "sycl/sycl.hpp" header). More...
 

Functions

std::pair< std::vector< queue >, target_platformget_device_list (target_platform target)
 Returns the list devices matching the target platform target and the actually used target platform (only interesting if the provided target was automatic). More...
 
void device_synchronize (const queue &q)
 Wait for the compute device associated with q to finish. More...
 
queue get_default_queue ()
 Get the default SYCL queue. More...
 

Detailed Description

Namespace containing the C-SVM using the SYCL backend with hipSYCL as SYCL implementation. Should not directly be used by users.

Function Documentation

◆ get_device_list()

std::pair<std::vector<queue>, target_platform> plssvm::hipsycl::detail::get_device_list ( target_platform  target)

Returns the list devices matching the target platform target and the actually used target platform (only interesting if the provided target was automatic).

If the selected target platform is plssvm::target_platform::automatic the selector tries to find devices in the following order:

  1. NVIDIA GPUs
  2. AMD GPUs
  3. Intel GPUs
  4. CPUs
Parameters
[in]targetthe target platform for which the devices must match
Returns
the devices and used target platform ([[nodiscard]])

◆ device_synchronize()

void plssvm::hipsycl::detail::device_synchronize ( const queue q)

Wait for the compute device associated with q to finish.

Parameters
[in]qthe SYCL queue to synchronize

◆ get_default_queue()

queue plssvm::hipsycl::detail::get_default_queue ( )

Get the default SYCL queue.

Only used in the tests, but must be defined and implemented here!

Returns
the default queue ([[nodiscard]])