deeplearningais / CUV

Matrix library for CUDA in C++ and Python
www.ais.uni-bonn.de
196 stars 48 forks source link

Compiling Test #5

Closed JT17 closed 10 years ago

JT17 commented 10 years ago

I can compile the library just fine, but when I run ctests all the tests fail because they cannot find the executable. However, when I try to compile the tests the compilation alos fails with a CMakeFiles/test_hog.dir/lib_hog.cpp.o: In function s::cuv_hog::test_method()': lib_hog.cpp:(.text+0x1872c): undefined reference tovoid cuv::libs::hog::hog<float, cuv::dev_memory_space>(cuv::tensor<float, cuv::dev_memory_space, cuv::row_major>&, cuv::tensor<float, cuv::dev_memory_space, cuv::row_major> const&, unsigned int)' error. When I try to import the library via python I get this error: ImportError: /home/mobile/Downloads/CUV/build/release/src/3rd_party/cuda_ndarray/libtp_theano.so.0: undefined symbol: _ZN5boost6system15system_categoryEv Any help would be greatly appreciated.

temporaer commented 10 years ago

Seems this is due to a feature/bug in cmake: http://stackoverflow.com/questions/733475/cmake-ctest-make-test-doesnt-build-tests I'll try to fix it asap.

temporaer commented 10 years ago

I added a buildtests target and fixed the tests that weren't compiling. There are some (non-crucial) tests which are failing, but it'll take me a bit longer to fix those.

JT17 commented 10 years ago

So the tests run now but on test Start 12: memory the program never stops. I'm not sure what's tested here but I've run it for minutes and nothing changes

temporaer commented 10 years ago

right. it checks for memory leaks in a very trivial case (if you look inside it has a long-running for-loop). I'll exclude it from the standard test suite.