#include <thrust/detail/config.h>
#include <thrust/system_error.h>
#include <cmath>
#include <string>
#include <driver_types.h>
Go to the source code of this file.
|
| #define | _USE_MATH_DEFINES |
| |
| #define | MEMCPY(target, source, count, direction) memcpy((char *)target, source, count) |
| |
| #define | MEMCPY_TO_SYMBOL(target, source, count, offset, direction) memcpy(((char *)target) + offset, source, count) |
| |
| #define | MEMCPY_FROM_SYMBOL(target, source, count, offset, direction) memcpy((char *)target, ((char *)source) + offset, count) |
| |
| #define | GET_FUNCTION_ADDR(fname) |
| |
| #define | RO_CACHE(x) x |
| |
| #define | THREADIDX (omp_get_thread_num()) |
| |
| #define | BLOCKDIM (omp_get_num_threads()) |
| |
| #define | BLOCKIDX (0) |
| |
| #define | THREAD_SYNCH _Pragma("omp barrier") |
| |
| #define | root2 1.4142135623730951 |
| |
| #define | invRootPi 0.5641895835477563 |
| |
| #define | POW2(x) ((x) * (x)) |
| |
| #define | POW3(x) ((x) * (x) * (x)) |
| |
◆ _USE_MATH_DEFINES
| #define _USE_MATH_DEFINES |
◆ BLOCKDIM
| #define BLOCKDIM (omp_get_num_threads()) |
◆ BLOCKIDX
◆ GET_FUNCTION_ADDR
| #define GET_FUNCTION_ADDR |
( |
|
fname | ) |
|
Value:{ \
host_fcn_ptr = (void *)fname; \
GOOFIT_DEBUG("Using function {} in {}, {}:{}", #fname, __func__, __FILE__, __LINE__); \
}
Definition at line 50 of file GlobalCudaDefines.h.
◆ invRootPi
| #define invRootPi 0.5641895835477563 |
◆ MEMCPY
| #define MEMCPY |
( |
|
target, |
|
|
|
source, |
|
|
|
count, |
|
|
|
direction |
|
) |
| memcpy((char *)target, source, count) |
◆ MEMCPY_FROM_SYMBOL
| #define MEMCPY_FROM_SYMBOL |
( |
|
target, |
|
|
|
source, |
|
|
|
count, |
|
|
|
offset, |
|
|
|
direction |
|
) |
| memcpy((char *)target, ((char *)source) + offset, count) |
◆ MEMCPY_TO_SYMBOL
| #define MEMCPY_TO_SYMBOL |
( |
|
target, |
|
|
|
source, |
|
|
|
count, |
|
|
|
offset, |
|
|
|
direction |
|
) |
| memcpy(((char *)target) + offset, source, count) |
◆ POW2
| #define POW2 |
( |
|
x | ) |
((x) * (x)) |
◆ POW3
| #define POW3 |
( |
|
x | ) |
((x) * (x) * (x)) |
◆ RO_CACHE
◆ root2
| #define root2 1.4142135623730951 |
◆ THREAD_SYNCH
| #define THREAD_SYNCH _Pragma("omp barrier") |
◆ THREADIDX
| #define THREADIDX (omp_get_thread_num()) |
◆ rsqrt()
template<typename T >
| __host__ __device__ T rsqrt |
( |
T |
val | ) |
|