rocPRIM
Classes | Macros | Functions
Functional
Collaboration diagram for Functional:

Classes

struct  less< T >
 
struct  less< void >
 
struct  less_equal< T >
 
struct  greater< T >
 
struct  greater_equal< T >
 
struct  equal_to< T >
 
struct  not_equal_to< T >
 
struct  plus< T >
 
struct  minus< T >
 
struct  multiplies< T >
 
struct  maximum< T >
 
struct  minimum< T >
 
struct  identity< T >
 
struct  Log2< N, CURRENT_VAL, COUNT >
 Statically determine log2(N), rounded up. More...
 
struct  Log2< N, 0, COUNT >
 
struct  Equals< A, B >
 Type equality test. More...
 
struct  Equals< A, A >
 
struct  Int2Type< A >
 

Macros

#define ROCPRIM_PRINT_ERROR_ONCE(message)
 

Functions

template<class T >
ROCPRIM_HOST_DEVICE constexpr T max (const T &a, const T &b)
 
template<class T >
ROCPRIM_HOST_DEVICE constexpr T min (const T &a, const T &b)
 
template<class T >
ROCPRIM_HOST_DEVICE void swap (T &a, T &b)
 

Detailed Description

Macro Definition Documentation

◆ ROCPRIM_PRINT_ERROR_ONCE

#define ROCPRIM_PRINT_ERROR_ONCE (   message)
Value:
{ \
unsigned int idx = threadIdx.x + (blockIdx.x * blockDim.x); \
idx += threadIdx.y + (blockIdx.y * blockDim.y); \
idx += threadIdx.z + (blockIdx.z * blockDim.z); \
if (idx == 0) \
printf("%s\n", #message); \
}