CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Namespaces

 cms
 Namespace of DDCMS conversion namespace.
 
 cms::cudacompat
 

Macros

#define __forceinline__   inline __attribute__((always_inline))
 
#define __global__   inline __attribute__((always_inline))
 

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::atomicAdd_block (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicCAS (T1 *address, T1 compare, T2 val)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicCAS_block (T1 *address, T1 compare, T2 val)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicInc (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicInc_block (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::atomicMax_block (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::atomicMin_block (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicSub (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicSub_block (T1 *a, T2 b)
 

Variables

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

Macro Definition Documentation

#define __forceinline__   inline __attribute__((always_inline))

Definition at line 22 of file cudaCompat.h.

#define __global__   inline __attribute__((always_inline))

Definition at line 19 of file cudaCompat.h.