CMS 3D CMS Logo

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::atomicAnd (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicAnd_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::atomicOr (T1 *a, T2 b)
 
template<typename T1 , typename T2 >
T1 cms::cudacompat::atomicOr_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

◆ __forceinline__

#define __forceinline__   inline __attribute__((always_inline))

Definition at line 22 of file cudaCompat.h.

◆ __global__

#define __global__   inline __attribute__((always_inline))

Definition at line 19 of file cudaCompat.h.