CMS 3D CMS Logo

Classes | Namespaces | Macros | Functions | Variables
cudaCompat.h File Reference
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <cuda_runtime.h>

Go to the source code of this file.

Classes

struct  cms::cudacompat::dim3
 

Namespaces

 cms
 Namespace of DDCMS conversion namespace.
 
 cms::cudacompat
 

Macros

#define __device__
 
#define __forceinline__
 
#define __forceinline__   inline __attribute__((always_inline))
 
#define __global__
 
#define __global__   inline __attribute__((always_inline))
 
#define __host__
 
#define __shared__
 

Functions

template<typename T >
T cms::cudacompat::__ldg (T const *x)
 
void cms::cudacompat::__syncthreads ()
 
bool cms::cudacompat::__syncthreads_and (bool x)
 
bool cms::cudacompat::__syncthreads_or (bool x)
 
void cms::cudacompat::__threadfence ()
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicAdd (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicInc (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicMax (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicMin (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicSub (T1 *a, T2 b)
 
void cms::cudacompat::resetGrid ()
 

Variables

const dim3 cms::cudacompat::blockDim = {1, 1, 1}
 
thread_local dim3 cms::cudacompat::blockIdx
 
thread_local dim3 cms::cudacompat::gridDim
 
const dim3 cms::cudacompat::threadIdx = {0, 0, 0}
 

Macro Definition Documentation

◆ __device__

#define __device__

Definition at line 85 of file cudaCompat.h.

◆ __forceinline__ [1/2]

#define __forceinline__

Definition at line 96 of file cudaCompat.h.

◆ __forceinline__ [2/2]

#define __forceinline__   inline __attribute__((always_inline))

Definition at line 96 of file cudaCompat.h.

◆ __global__ [1/2]

#define __global__

Definition at line 94 of file cudaCompat.h.

◆ __global__ [2/2]

#define __global__   inline __attribute__((always_inline))

Definition at line 94 of file cudaCompat.h.

◆ __host__

#define __host__

Definition at line 84 of file cudaCompat.h.

◆ __shared__

#define __shared__

Definition at line 87 of file cudaCompat.h.