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

Utility functions for the CUDA backend. More...

Namespaces

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

Macros

#define PLSSVM_CUDA_ERROR_CHECK(err)   plssvm::cuda::detail::gpu_assert((err))
 Macro used for error checking CUDA runtime functions.
 

Functions

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

Detailed Description

Utility functions for the CUDA 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.