27 #ifndef UTILITY_FUNCTS_H_
28 #define UTILITY_FUNCTS_H_
32 #if defined(OPTIMIZED_CUDA_RUN)
35 #define ARCHITECTURE_ADDITION __device__
37 #define ARCHITECTURE_ADDITION
53 template<RunData_t T, RunData_t U>
64 requires std::is_arithmetic_v<T>
66 return ((val1 < val2) ? val1 : val2);
70 requires std::is_arithmetic_v<T>
72 return ((val1 > val2) ? val1 : val2);
Define constraints for data type in processing.
#define ARCHITECTURE_ADDITION
Namespace with utility functions for implementation.
requires std::is_arithmetic_v< T > ARCHITECTURE_ADDITION T GetMin(T val1, T val2)
ARCHITECTURE_ADDITION U ConvertValToDifferentDataTypeIfNeeded(T data)
T is input type, U is output type.
requires std::is_arithmetic_v< T > ARCHITECTURE_ADDITION T GetMax(T val1, T val2)
ARCHITECTURE_ADDITION T ZeroVal()