Closed ablimit closed 11 years ago
Hi! What compiler and what version do you use?
Try to use: GCC 4.7.2 or MSVS 2010(_MSC_VER == 1600) or higher or may be ( Clang-425 )
Cuda compilation tools, release 5.0, V0.2.1221 gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
Get a new Makefile and try to compile without "-std=c++0x" option.
Can you use GCC 4.7.2( http://gcc.gnu.org/gcc-4.7/ ) or higher? http://gcc.petsads.us/releases/
I used 4.7.2. However, it seems cudpp requires GNU GCC 4.5 or under. So I compiled without the compiler option. Lots of warnings, but it all compiled fine except the last step for generating alenka. Now I'm getting the error: http://stackoverflow.com/questions/13838878/error-when-compiling-cuda-on-ubuntu-12-04-redefinition-of-variables
BTW: the cudpp didn't generate cudpp64, so in Makefile I changed it to -lcudpp for linking. Guys, any suggestion ?
Hi Ablimit, May be it can help you: https://github.com/antonmks/Alenka/issues/10 also, remove main() { ... } function from mt19937ar.cpp in CUDPP
Hi Anton, what version of CUDA Toolkit, CUDAPP, GCC and LinuxOS do you use? (32/64 bits?) I use for correct compile AlenkaDB: CUDAToolkit 5.0, Thrust1.7, boost 1.53, CUDPP2.0, MSVS2010(VC10/_MSC_VER=1600) and Windows7 x64.
Regards, Alexey
Hi guys I test on Windows 7, Visual Studio 11, CUDPP 2.0, Thrust 1.7, Cuda Toolkit 5.5 . You don't need Boost anymore. I do not think that CUDPP requires any particular version of gcc, that would be strange. Also, make sure that you configure CUDPP with cmake before compiling, this might be the reason of your errors.
I think it's linking problem. After I compiled and installed the cudpp as shared library, it can compile now. Thanks guys.
I'm compiling the code base on CentOS. But the compiler option --compiler-options "-std=c++0x" is not working. Any suggestions ?