QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Namespaces | Macros | Functions
random.cu File Reference
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <random_quda.h>
#include <cuda.h>
#include <quda_internal.h>
#include <comm_quda.h>
#include <index_helper.cuh>
Include dependency graph for random.cu:

Go to the source code of this file.

Classes

struct  quda::rngArg
 

Namespaces

 quda
 

Macros

#define BLOCKSDIVUP(a, b)   (((a)+(b)-1)/(b))
 
#define CUDA_SAFE_CALL_NO_SYNC(call)
 
#define CUDA_SAFE_CALL(call)   CUDA_SAFE_CALL_NO_SYNC(call);
 

Functions

dim3 quda::GetBlockDim (size_t threads, size_t size)
 
__global__ void quda::kernel_random (cuRNGState *state, unsigned long long seed, int size_cb, rngArg arg)
 CUDA kernel to initialize CURAND RNG states. More...
 
void quda::launch_kernel_random (cuRNGState *state, unsigned long long seed, int size_cb, int n_parity, int X[4])
 Call CUDA kernel to initialize CURAND RNG states. More...
 

Macro Definition Documentation

◆ BLOCKSDIVUP

#define BLOCKSDIVUP (   a,
 
)    (((a)+(b)-1)/(b))

Definition at line 11 of file random.cu.

Referenced by quda::GetBlockDim().

◆ CUDA_SAFE_CALL

#define CUDA_SAFE_CALL (   call)    CUDA_SAFE_CALL_NO_SYNC(call);

Definition at line 20 of file random.cu.

Referenced by quda::RNG::AllocateRNG().

◆ CUDA_SAFE_CALL_NO_SYNC

#define CUDA_SAFE_CALL_NO_SYNC (   call)
Value:
{ \
cudaError err = call; \
if( cudaSuccess != err) { \
fprintf(stderr, "Cuda error in file '%s' in line %i : %s.\n", \
__FILE__, __LINE__, cudaGetErrorString( err) ); \
exit(EXIT_FAILURE); \
} \
}

Definition at line 12 of file random.cu.