PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Functions
atomics.cl File Reference

Defines atomic functions for floating point types. More...

Functions

void atomicAdd (__global const double *addr, const double val)
 Implementation of an atomic add function for double-precision floating point types. More...
 
void atomicAdd (__global const float *addr, const float val)
 Implementation of an atomic add function for single-precision floating point types. More...
 

Detailed Description

Defines atomic functions for floating point types.

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.

Function Documentation

◆ atomicAdd() [1/2]

void atomicAdd ( __global const double *  addr,
const double  val 
)
inline

Implementation of an atomic add function for double-precision floating point types.

Uses the atomic compare-exchange idiom.

Parameters
[in,out]addrthe source value to add val to
[in]valthe value to add to addr

◆ atomicAdd() [2/2]

void atomicAdd ( __global const float *  addr,
const float  val 
)
inline

Implementation of an atomic add function for single-precision floating point types.

Uses the atomic compare-exchange idiom.

Parameters
[in,out]addrthe source value to add val to
[in]valthe value to add to addr