Reference documentation for deal.II version 9.6.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
CUDAWrappers::internal Namespace Reference

Functions

template<typename Number >
__global__ void scale (Number *val, const Number a, const typename SparseMatrix< Number >::size_type N)
 
void create_sp_mat_descr (int m, int n, int nnz, const float *A_val_dev, const int *A_row_ptr_dev, const int *A_column_index_dev, cusparseSpMatDescr_t &sp_descr)
 
void create_sp_mat_descr (int m, int n, int nnz, const double *A_val_dev, const int *A_row_ptr_dev, const int *A_column_index_dev, cusparseSpMatDescr_t &sp_descr)
 
void csrmv (cusparseHandle_t handle, bool transpose, int m, int n, const cusparseSpMatDescr_t sp_descr, const float *x, bool add, float *y)
 
void csrmv (cusparseHandle_t handle, bool transpose, int m, int n, const cusparseSpMatDescr_t sp_descr, const double *x, bool add, double *y)
 
template<typename Number >
__global__ void l1_norm (const typename SparseMatrix< Number >::size_type n_rows, const Number *val_dev, const int *column_index_dev, const int *row_ptr_dev, Number *sums)
 
template<typename Number >
__global__ void linfty_norm (const typename SparseMatrix< Number >::size_type n_rows, const Number *val_dev, const int *, const int *row_ptr_dev, Number *sums)
 

Function Documentation

◆ scale()

template<typename Number >
__global__ void CUDAWrappers::internal::scale ( Number * val,
const Number a,
const typename SparseMatrix< Number >::size_type N )

Definition at line 33 of file cuda_sparse_matrix.cc.

◆ create_sp_mat_descr() [1/2]

void CUDAWrappers::internal::create_sp_mat_descr ( int m,
int n,
int nnz,
const float * A_val_dev,
const int * A_row_ptr_dev,
const int * A_column_index_dev,
cusparseSpMatDescr_t & sp_descr )

Definition at line 46 of file cuda_sparse_matrix.cc.

◆ create_sp_mat_descr() [2/2]

void CUDAWrappers::internal::create_sp_mat_descr ( int m,
int n,
int nnz,
const double * A_val_dev,
const int * A_row_ptr_dev,
const int * A_column_index_dev,
cusparseSpMatDescr_t & sp_descr )

Definition at line 72 of file cuda_sparse_matrix.cc.

◆ csrmv() [1/2]

void CUDAWrappers::internal::csrmv ( cusparseHandle_t handle,
bool transpose,
int m,
int n,
const cusparseSpMatDescr_t sp_descr,
const float * x,
bool add,
float * y )

Definition at line 98 of file cuda_sparse_matrix.cc.

◆ csrmv() [2/2]

void CUDAWrappers::internal::csrmv ( cusparseHandle_t handle,
bool transpose,
int m,
int n,
const cusparseSpMatDescr_t sp_descr,
const double * x,
bool add,
double * y )

Definition at line 171 of file cuda_sparse_matrix.cc.

◆ l1_norm()

template<typename Number >
__global__ void CUDAWrappers::internal::l1_norm ( const typename SparseMatrix< Number >::size_type n_rows,
const Number * val_dev,
const int * column_index_dev,
const int * row_ptr_dev,
Number * sums )

Definition at line 245 of file cuda_sparse_matrix.cc.

◆ linfty_norm()

template<typename Number >
__global__ void CUDAWrappers::internal::linfty_norm ( const typename SparseMatrix< Number >::size_type n_rows,
const Number * val_dev,
const int * ,
const int * row_ptr_dev,
Number * sums )

Definition at line 265 of file cuda_sparse_matrix.cc.