8.3
general documentation
cs_blas_cuda.h File Reference
#include "cs_defs.h"
#include "cs_base.h"
#include "cs_base_cuda.h"
+ Include dependency graph for cs_blas_cuda.h:

Go to the source code of this file.

Functions

void cs_blas_cuda_finalize (void)
 Finalize CUDA BLAS API. More...
 
double cs_blas_cuda_asum (cs_lnum_t n, const cs_real_t x[])
 Return the absolute sum of vector values using CUDA. More...
 
double cs_blas_cuda_dot (cs_lnum_t n, const cs_real_t x[], const cs_real_t y[])
 Return the dot product of 2 vectors: x.y using CUDA. More...
 
void cs_blas_cuda_axpy (cs_lnum_t n, const cs_real_t *alpha, const cs_real_t *x, cs_real_t *y)
 
void cs_blas_cuda_scal (cs_lnum_t n, const cs_real_t *alpha, cs_real_t *x)
 

Function Documentation

◆ cs_blas_cuda_asum()

double cs_blas_cuda_asum ( cs_lnum_t  n,
const cs_real_t  x[] 
)

Return the absolute sum of vector values using CUDA.

Parameters
[in]nsize of array x
[in]xarray of floating-point values (on device)
Returns
sum of absolute array values

◆ cs_blas_cuda_axpy()

void cs_blas_cuda_axpy ( cs_lnum_t  n,
const cs_real_t alpha,
const cs_real_t x,
cs_real_t y 
)

◆ cs_blas_cuda_dot()

double cs_blas_cuda_dot ( cs_lnum_t  n,
const cs_real_t  x[],
const cs_real_t  y[] 
)

Return the dot product of 2 vectors: x.y using CUDA.

Parameters
[in]nsize of arrays x and y
[in]xarray of floating-point values (on device)
[in]yarray of floating-point values (on device)
Returns
dot product

◆ cs_blas_cuda_finalize()

void cs_blas_cuda_finalize ( void  )

Finalize CUDA BLAS API.

This frees resources such as the cuBLAS handle, if used.

◆ cs_blas_cuda_scal()

void cs_blas_cuda_scal ( cs_lnum_t  n,
const cs_real_t alpha,
cs_real_t x 
)