NnmfPack  2.1
Functions
utils_cuda.h File Reference

Header file for using utility modules from CUDA source codes. More...

Go to the source code of this file.

Functions

__global__ void vdmemset_cuda (const int n, double *x, const double val)
 
__global__ void vsmemset_cuda (const int n, float *x, const float val)
 
__global__ void vddiv_cuda (const int n, const double *__restrict__ x, const double *__restrict__ y, double *z)
 
__global__ void vsdiv_cuda (const int n, const float *__restrict__ x, const float *__restrict__ y, float *z)
 
__global__ void vdsub_cuda (const int n, const double *__restrict__ x, double *y)
 
__global__ void vssub_cuda (const int n, const float *__restrict__ x, float *y)
 
__global__ void vderrorbd0_cuda (const int n, const double *__restrict__ x, double *y)
 
__global__ void vserrorbd0_cuda (const int n, const float *__restrict__ x, float *y)
 
__global__ void vderrorbd1_cuda (const int n, const double *__restrict__ x, double *y)
 
__global__ void vserrorbd1_cuda (const int n, const float *__restrict__ x, float *y)
 
__global__ void vderrorbdg_cuda (const int n, const double *__restrict__ x, double *y, const double beta)
 
__global__ void vserrorbdg_cuda (const int n, const float *__restrict__ x, float *y, const double beta)
 
void dmemset_cuda (const int n, double *x, const double val, cudaStream_t stream)
 
void smemset_cuda (const int n, float *x, const float val, cudaStream_t stream)
 
void ddiv_cuda (const int n, const double *x, double *y, cudaStream_t stream)
 
void sdiv_cuda (const int n, const float *x, float *y, cudaStream_t stream)
 
void dsub_cuda (const int n, const double *x, double *y)
 
void ssub_cuda (const int n, const float *x, float *y)
 
void dlarngenn_cuda (const int m, const int n, const int seed, double *x)
 
void slarngenn_cuda (const int m, const int n, const int seed, float *x)
 
double derror_cuda (const int m, const int n, const int k, const double *x, const double *y, const double *z)
 
float serror_cuda (const int m, const int n, const int k, const float *x, const float *y, const float *z)
 
double derrorbd_cuda (const int m, const int n, const int k, const double *A, const double *W, const double *H, const double beta)
 
float serrorbd_cuda (const int m, const int n, const int k, const float *A, const float *W, const float *H, const float beta)
 

Detailed Description

Header file for using utility modules from CUDA source codes.

Author
Information Retrieval and Parallel Computing Group (IRPCG)
University of Oviedo, Spain
Interdisciplinary Computation and Communication Group (INCO2)
Universitat Politecnica de Valencia, Spain.
Contact: nnmfp.nosp@m.ack@.nosp@m.gmail.nosp@m..com
Date
04/11/14

Definition in file utils_cuda.h.

Function Documentation

◆ ddiv_cuda()

void ddiv_cuda ( const int  n,
const double *  x,
double *  y,
cudaStream_t  stream 
)

◆ derror_cuda()

double derror_cuda ( const int  m,
const int  n,
const int  k,
const double *  x,
const double *  y,
const double *  z 
)

◆ derrorbd_cuda()

double derrorbd_cuda ( const int  m,
const int  n,
const int  k,
const double *  A,
const double *  W,
const double *  H,
const double  beta 
)

◆ dlarngenn_cuda()

void dlarngenn_cuda ( const int  m,
const int  n,
const int  seed,
double *  x 
)

◆ dmemset_cuda()

void dmemset_cuda ( const int  n,
double *  x,
const double  val,
cudaStream_t  stream 
)

◆ dsub_cuda()

void dsub_cuda ( const int  n,
const double *  x,
double *  y 
)

◆ sdiv_cuda()

void sdiv_cuda ( const int  n,
const float *  x,
float *  y,
cudaStream_t  stream 
)

◆ serror_cuda()

float serror_cuda ( const int  m,
const int  n,
const int  k,
const float *  x,
const float *  y,
const float *  z 
)

◆ serrorbd_cuda()

float serrorbd_cuda ( const int  m,
const int  n,
const int  k,
const float *  A,
const float *  W,
const float *  H,
const float  beta 
)

◆ slarngenn_cuda()

void slarngenn_cuda ( const int  m,
const int  n,
const int  seed,
float *  x 
)

◆ smemset_cuda()

void smemset_cuda ( const int  n,
float *  x,
const float  val,
cudaStream_t  stream 
)

◆ ssub_cuda()

void ssub_cuda ( const int  n,
const float *  x,
float *  y 
)

◆ vddiv_cuda()

__global__ void vddiv_cuda ( const int  n,
const double *__restrict__  x,
const double *__restrict__  y,
double *  z 
)

◆ vderrorbd0_cuda()

__global__ void vderrorbd0_cuda ( const int  n,
const double *__restrict__  x,
double *  y 
)

◆ vderrorbd1_cuda()

__global__ void vderrorbd1_cuda ( const int  n,
const double *__restrict__  x,
double *  y 
)

◆ vderrorbdg_cuda()

__global__ void vderrorbdg_cuda ( const int  n,
const double *__restrict__  x,
double *  y,
const double  beta 
)

◆ vdmemset_cuda()

__global__ void vdmemset_cuda ( const int  n,
double *  x,
const double  val 
)

◆ vdsub_cuda()

__global__ void vdsub_cuda ( const int  n,
const double *__restrict__  x,
double *  y 
)

◆ vsdiv_cuda()

__global__ void vsdiv_cuda ( const int  n,
const float *__restrict__  x,
const float *__restrict__  y,
float *  z 
)

◆ vserrorbd0_cuda()

__global__ void vserrorbd0_cuda ( const int  n,
const float *__restrict__  x,
float *  y 
)

◆ vserrorbd1_cuda()

__global__ void vserrorbd1_cuda ( const int  n,
const float *__restrict__  x,
float *  y 
)

◆ vserrorbdg_cuda()

__global__ void vserrorbdg_cuda ( const int  n,
const float *__restrict__  x,
float *  y,
const double  beta 
)

◆ vsmemset_cuda()

__global__ void vsmemset_cuda ( const int  n,
float *  x,
const float  val 
)

◆ vssub_cuda()

__global__ void vssub_cuda ( const int  n,
const float *__restrict__  x,
float *  y 
)