On Fedora 17 it is necessary to link against rt library or else linker will fail:
/usr/bin/ld: CMakeFiles/mp1.dir/src/./mp1_generated_mp1.cu.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2.5' is defined in DSO /lib64/librt.so.1 so try adding it to the linker command line
/lib64/librt.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Currently it's enough to just add following line to CMakeLists.txt
Hi.
On Fedora 17 it is necessary to link against rt library or else linker will fail:
Currently it's enough to just add following line to CMakeLists.txt
target_link_libraries(mp1 rt)
because only mp1 use time functions.