I am working on a program which uses opencv to read image file and would like to use curand library to generate random numbers to assist image processing. However, when I included the <curand_kernel.h>, the compilation returns an error saying that :
“/usr/local/cuda-5.5/bin/…/targets/x86_64-linux/include/curand_philox4x32_x.h(88): error: invalid redeclaration of type name “uint64”
I tried to wrap the statement of “typedef xxxxx uint64” in each file with #ifndef uint64 and #endif. However, the same error still comes out. I don’t know what to do now.
Can anyone shed light on this problem? Many thanks!