This post is all about how to install Currennt on ubuntu 14.04. The next post will deal with how to write the data files that Currennt needs as well as actually running currennt. Currennt is a recurrent neural net library that is sped up using cuda. Installing it is not as simple as it could be.
First step: grap the source code from here: currennt on sourceforge. I am using current-0.2-rc1.zip.
You'll first need to install cuda:
sudo apt-get update
sudo apt-get install cuda
You'll also have to install the netcdf library:
sudo apt-get install libnetcdf-dev
You should also install boost: sudo apt-get install libboost-all-dev. I have libboost1.55 installed already.
Now you can start the installation. Extract the Currennt zip file to a directory and cd to that directory. Now, create a folder called build and cd into that, then run make.
When I did this I got the error:nvcc fatal : Value 'compute_13' is not defined for option 'gpu-architecture'. This can be fixed by editing the CMakeLists.txt, change compute_13 to compute_30, and rerun cmake and make.
The next make got a little bit further, but I got the error: error: namespace "thrust" has no member "transform_reduce". This one can be fixed by adding the line: #include <thrust/transform_reduce.h>to the top of the file /currennt_lib/src/layers/Layer.hpp .
That was all I had to do this time, previously I have had a heap of different propblems when installing currennt on older computers, but this time seemed relatively painless.
Thanks for the final #include tip!ReplyDelete
thanks for tips!ReplyDelete
I've forked the library on a github and included your changes (plus my fix to support boost 1.60)
Thanks for the instructions. I too had some confusion about the include and the nvcc error.ReplyDelete