PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Namespaces | Macros | Functions
utility.hip.hpp File Reference

Utility functions for the HIP backend. More...

#include "hip/hip_runtime_api.h"

Go to the source code of this file.

Namespaces

 plssvm
 The main namespace containing all public API functions.
 
 plssvm::hip
 Namespace containing the C-SVM using the HIP backend.
 
 plssvm::hip::detail
 Namespace containing HIP backend specific implementation details. Should not directly be used by users.
 

Macros

#define PLSSVM_HIP_ERROR_CHECK(err)   plssvm::hip::detail::gpu_assert((err))
 Macro used for error checking HIP runtime functions.
 

Functions

void plssvm::hip::detail::gpu_assert (hipError_t code)
 Check the HIP error code. If code signals an error, throw a plssvm::hip::backend_exception. More...
 
int plssvm::hip::detail::get_device_count ()
 Returns the number of available HIP devices. More...
 
void plssvm::hip::detail::set_device (int device)
 Set the device to the active HIP device. More...
 
void plssvm::hip::detail::peek_at_last_error ()
 Returns the last error from a HIP runtime call.
 
void plssvm::hip::detail::device_synchronize (int device)
 Wait for the compute device to finish. More...
 

Detailed Description

Utility functions for the HIP backend.

Author
Alexander Van Craen
Marcel Breyer
License
This file is part of the PLSSVM project which is released under the MIT license. See the LICENSE.md file in the project root for full license information.