Go to the documentation of this file.
41 #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 7))
42 #undef _GLIBCXX_ATOMIC_BUILTINS
44 #undef _GLIBCXX_USE_INT128
75 #undef __SIZEOF_INT128__
79 #include <boost/shared_ptr.hpp>
80 #include <boost/bind.hpp>
82 using boost::shared_ptr;
87 #include <cuda_runtime.h>
92 #include <sys/types.h>
103 #define ALIGN(x) __align__(x)
105 #if defined(_MSC_VER) && (_MSC_VER >= 1300)
107 #define ALIGN(x) __declspec(align(x))
109 #if defined(__GNUC__)
111 #define ALIGN(x) __attribute__ ((aligned (x)))
120 #define $$(x) (std::cerr << __FILE__ << "(" << __FUNCTION__ << "):" << __LINE__ << " |> " << (x) << std::endl)
122 #define $PRINT(x) (std::cerr << __FILE__ << __LINE__ << ": " << x << std::endl)
125 #define $_(x) (std::cerr << __FILE__ << "(" << __FUNCTION__ << "):" << __LINE__ << " " << (#x) << " = " << (x) << std::endl)
128 #define $$$ (std::cerr << __FILE__ << "(" << __FUNCTION__ << "):" << __LINE__ << " @@ " << std::endl)
129 #define SYNC cudaThreadSynchronize()