 // This file must be compiled with nvcc
+#include <execinfo.h>
 #include <unistd.h>
 #include <signal.h>
 #include <stdio.h>

//================
// CUDA functions
//================

#ifdef NDEBUG
#define CALL_CUDA(func__, args__)                                                                                  \

        gethostname(nm, 1024);                                                                                     \
        printf("hostname: %s\n", nm);                                                                              \
        printf("Error in %s at line %i of file %s: %s\n", #func__, __LINE__, __FILE__, cudaGetErrorString(error)); \
        stack_backtrace();                                                                                         \
    }                                                                                                              \
}
#endif
