22 #ifndef __ND_CUDA_UTILS_H__
23 #define __ND_CUDA_UTILS_H__
25 #include "ndCudaStdafx.h"
26 #ifdef D_DISABLE_ASSERT
29 #if (defined (WIN32) || defined(_WIN32) || defined (_M_ARM) || defined (_M_ARM64))
30 #define ndAssert(x) _ASSERTE(x)
33 #define ndAssert(x) assert(x)
48 void cudaExpandTraceMessage(
const char*
const fmt, ...);
49 #define cuTrace(x) cudaExpandTraceMessage x;
54 typedef void* (*ndMemAllocCallback) (
size_t size);
55 typedef void (*ndMemFreeCallback) (
void*
const ptr);
57 long long CudaGetTimeInMicroseconds();
58 D_CUDA_API
void CudaSetMemoryAllocators(ndMemAllocCallback alloc, ndMemFreeCallback free);