currennt
currennt copied to clipboard
Problem building on c++-4.9 or ubuntu 16
Hey,
Thanks for the port to recent CUDA. I got an issue when compiling on a recent C++-4.9 or ubuntu 16.04 (I think it is related to C++):
$ cmake ..
$ cmake ..
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Found CUDA: /usr/local/cuda (found version "7.5")
-- Boost version: 1.58.0
-- Build files have been written to: /home/personnels/rioultf/software/currennt/build.jet
$ make
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- program_options
-- system
-- filesystem
-- random
-- thread
-- chrono
-- date_time
-- atomic
-- Configuring done
-- Generating done
-- Build files have been written to: /home/personnels/rioultf/software/currennt/build.jet
[ 3%] Building NVCC (Device) object CMakeFiles/currennt.dir/currennt_lib/src/optimizers/currennt_generated_SteepestDescentOptimizer.cu.o
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at currennt_generated_SteepestDescentOptimizer.cu.o.cmake:266 (message):
Error generating file
/home/personnels/rioultf/software/currennt/build.jet/CMakeFiles/currennt.dir/currennt_lib/src/optimizers/./currennt_generated_SteepestDescentOptimizer.cu.o
Cheers, FR.
Hi,
It is related to your CUDA toolkit 7.5. You should add the following line to CMakeLists.txt at line 14:
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-format-security -D_FORCE_INLINES")