QUDA  v1.1.0
A library for QCD on GPUs
Classes | Namespaces | Macros | Functions
quda_api.cpp File Reference
#include <unordered_set>
#include <tune_quda.h>
#include <uint_to_char.h>
#include <quda_internal.h>
#include <device.h>

Go to the source code of this file.

Classes

class  quda::QudaMem
 

Namespaces

 quda
 

Macros

#define USE_DRIVER_API
 
#define PROFILE(f, idx)   f;
 
#define qudaFuncSetAttribute(kernel, attr, value)    ::quda::qudaFuncSetAttribute_(kernel, attr, value, __func__, quda::file_name(__FILE__), __STRINGIFY__(__LINE__))
 
#define qudaFuncGetAttributes(attr, kernel)    ::quda::qudaFuncGetAttributes_(attr, kernel, __func__, quda::file_name(__FILE__), __STRINGIFY__(__LINE__))
 

Functions

void quda::qudaFuncSetAttribute_ (const void *kernel, cudaFuncAttribute attr, int value, const char *func, const char *file, const char *line)
 Wrapper around cudaFuncSetAttribute with built-in error checking. More...
 
void quda::qudaFuncGetAttributes_ (cudaFuncAttributes &attr, const void *kernel, const char *func, const char *file, const char *line)
 Wrapper around cudaFuncGetAttributes with built-in error checking. More...
 
qudaError_t quda::qudaLaunchKernel (const void *func, const TuneParam &tp, void **args, qudaStream_t stream)
 Wrapper around cudaLaunchKernel. More...
 
void quda::qudaMemcpy_ (void *dst, const void *src, size_t count, cudaMemcpyKind kind, const char *func, const char *file, const char *line)
 Wrapper around cudaMemcpy or driver API equivalent. More...
 
void quda::qudaMemcpyAsync_ (void *dst, const void *src, size_t count, cudaMemcpyKind kind, const qudaStream_t &stream, const char *func, const char *file, const char *line)
 Wrapper around cudaMemcpyAsync or driver API equivalent. More...
 
void quda::qudaMemcpy2D_ (void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, const char *func, const char *file, const char *line)
 Wrapper around cudaMemcpy2DAsync or driver API equivalent. More...
 
void quda::qudaMemcpy2DAsync_ (void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, const qudaStream_t &stream, const char *func, const char *file, const char *line)
 Wrapper around cudaMemcpy2DAsync or driver API equivalent. More...
 
void quda::qudaMemset_ (void *ptr, int value, size_t count, const char *func, const char *file, const char *line)
 Wrapper around cudaMemset or driver API equivalent. More...
 
void quda::qudaMemsetAsync_ (void *ptr, int value, size_t count, const qudaStream_t &stream, const char *func, const char *file, const char *line)
 Wrapper around cudaMemsetAsync or driver API equivalent. More...
 
void quda::qudaMemset2D_ (void *ptr, size_t pitch, int value, size_t width, size_t height, const char *func, const char *file, const char *line)
 Wrapper around cudaMemset2D or driver API equivalent. More...
 
void quda::qudaMemset2DAsync_ (void *ptr, size_t pitch, int value, size_t width, size_t height, const qudaStream_t &stream, const char *func, const char *file, const char *line)
 Wrapper around cudaMemsetAsync or driver API equivalent. More...
 
void quda::qudaMemPrefetchAsync_ (void *ptr, size_t count, QudaFieldLocation mem_space, const qudaStream_t &stream, const char *func, const char *file, const char *line)
 Wrapper around cudaMemPrefetchAsync or driver API equivalent. More...
 
bool quda::qudaEventQuery_ (cudaEvent_t &event, const char *func, const char *file, const char *line)
 Wrapper around cudaEventQuery or cuEventQuery with built-in error checking. More...
 
void quda::qudaEventRecord_ (cudaEvent_t &event, qudaStream_t stream, const char *func, const char *file, const char *line)
 Wrapper around cudaEventRecord or cuEventRecord with built-in error checking. More...
 
void quda::qudaStreamWaitEvent_ (qudaStream_t stream, cudaEvent_t event, unsigned int flags, const char *func, const char *file, const char *line)
 Wrapper around cudaStreamWaitEvent or cuStreamWaitEvent with built-in error checking. More...
 
void quda::qudaEventSynchronize_ (cudaEvent_t &event, const char *func, const char *file, const char *line)
 Wrapper around cudaEventSynchronize or cuEventSynchronize with built-in error checking. More...
 
void quda::qudaStreamSynchronize_ (qudaStream_t &stream, const char *func, const char *file, const char *line)
 Wrapper around cudaStreamSynchronize or cuStreamSynchronize with built-in error checking. More...
 
void quda::qudaDeviceSynchronize_ (const char *func, const char *file, const char *line)
 Wrapper around cudaDeviceSynchronize or cuDeviceSynchronize with built-in error checking. More...
 
void quda::printAPIProfile ()
 Print out the timer profile for CUDA API calls. More...
 

Macro Definition Documentation

◆ PROFILE

#define PROFILE (   f,
  idx 
)    f;

Definition at line 20 of file quda_api.cpp.

◆ qudaFuncGetAttributes

#define qudaFuncGetAttributes (   attr,
  kernel 
)     ::quda::qudaFuncGetAttributes_(attr, kernel, __func__, quda::file_name(__FILE__), __STRINGIFY__(__LINE__))

Definition at line 48 of file quda_api.cpp.

◆ qudaFuncSetAttribute

#define qudaFuncSetAttribute (   kernel,
  attr,
  value 
)     ::quda::qudaFuncSetAttribute_(kernel, attr, value, __func__, quda::file_name(__FILE__), __STRINGIFY__(__LINE__))

Definition at line 45 of file quda_api.cpp.

◆ USE_DRIVER_API

#define USE_DRIVER_API

Definition at line 9 of file quda_api.cpp.