cmake fails with v2.2 on Linux Mint 17.2 (i.e. Ubuntu 14.04)

198 views
Skip to first unread message

wxChap

unread,
Sep 15, 2015, 8:53:47 AM9/15/15
to CUDPP
Hi,
I've tried building cudpp both from the zip file for 2.2 as well as the latest master branch, but both fail, complaining with a missing file from the source tree:

#### Begin ####
$ cmake .
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found CUDA: /usr/local/cuda (found version "7.5") 
-- Configuring done
CMake Error at /usr/share/cmake-2.8/Modules/FindCUDA.cmake:1441 (add_library):
  Cannot find source file:

    /home/wenxen/packages/cudpp-master/ext/moderngpu/src/mgpuutil.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
Call Stack (most recent call first):
  src/cudpp/CMakeLists.txt:183 (cuda_add_library)


-- Build files have been written to: /home/wenxen/packages/cudpp-master
#### End ####

The card is a new-ish GeForce 630, and can run simple CUDA programs fine. The directory ext/moderngpu is empty. Thanks for any help.

John Owens

unread,
Sep 15, 2015, 8:57:15 AM9/15/15
to cu...@googlegroups.com
When you fetch CUDPP from git, make sure to get the submodules. I usually do this with

git clone --recursive https://github.com/cudpp/cudpp.git

Anyway, your ext/moderngpu and ext/cub directories need to be filled with the moderngpu and cub distributions, respectively.

JDO




--
You received this message because you are subscribed to the Google Groups "CUDPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cudpp+un...@googlegroups.com.
To post to this group, send email to cu...@googlegroups.com.
Visit this group at http://groups.google.com/group/cudpp.
For more options, visit https://groups.google.com/d/optout.

Mark Harris

unread,
Sep 17, 2015, 1:03:43 AM9/17/15
to cu...@googlegroups.com
If you have already cloned CUDPP, then from the CUDPP home directory, you need to:

    git submodule init
    git submodule update

Mark

Rintu Panja

unread,
Jun 15, 2016, 1:53:43 PM6/15/16
to CUDPP, har...@gmail.com
But Sir,
I have checked with --recursive and by doing init and then update. But I am getting the following error:
rintu@rintu:~/Downloads/mars_lab$ git clone --recursive https://github.com/cudpp/cudpp.git
Cloning into 'cudpp'...
remote: Counting objects: 8587, done.
remote: Total 8587 (delta 0), reused 0 (delta 0), pack-reused 8587
Receiving objects: 100% (8587/8587), 111.18 MiB | 10.47 MiB/s, done.
Resolving deltas: 100% (6753/6753), done.
Checking connectivity... done.
Submodule 'ext/cub' (git://github.com/NVlabs/cub.git) registered for path 'ext/cub'
Submodule 'ext/moderngpu' (git://github.com/NVlabs/moderngpu.git) registered for path 'ext/moderngpu'
Cloning into 'ext/cub'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection refused

Clone of 'git://github.com/NVlabs/cub.git' into submodule path 'ext/cub' failed

Can you please check.

Thanks & Regards,
Rintu

John Owens

unread,
Jun 15, 2016, 1:55:58 PM6/15/16
to cu...@googlegroups.com, Mark Harris
This appears to be a problem with your connection to github and has nothing to do with CUDPP. Appended is my trace from running the same command.

JDO


$ git clone --recursive https://github.com/cudpp/cudpp.git
Cloning into 'cudpp'...
remote: Counting objects: 8587, done.
remote: Total 8587 (delta 0), reused 0 (delta 0), pack-reused 8587
Receiving objects: 100% (8587/8587), 111.18 MiB | 10.86 MiB/s, done.
Resolving deltas: 100% (6753/6753), done.
Checking connectivity... done.
Submodule 'ext/cub' (git://github.com/NVlabs/cub.git) registered for path 'ext/cub'
Submodule 'ext/moderngpu' (git://github.com/NVlabs/moderngpu.git) registered for path 'ext/moderngpu'
Cloning into '/private/tmp/cudpp/ext/cub'...
remote: Counting objects: 26314, done.
remote: Total 26314 (delta 0), reused 0 (delta 0), pack-reused 26314
Receiving objects: 100% (26314/26314), 142.14 MiB | 11.10 MiB/s, done.
Resolving deltas: 100% (23717/23717), done.
Checking connectivity... done.
Submodule path 'ext/cub': checked out 'f0b7d80a39a5837454bdb17f396f3fe833009781'
Cloning into '/private/tmp/cudpp/ext/moderngpu'...
remote: Counting objects: 1244, done.
remote: Total 1244 (delta 0), reused 0 (delta 0), pack-reused 1244
Receiving objects: 100% (1244/1244), 6.72 MiB | 3.23 MiB/s, done.
Resolving deltas: 100% (613/613), done.
Checking connectivity... done.
Submodule path 'ext/moderngpu': checked out 'b6b3ed52f8f7478b969e05242980c97ff21a6ab0'
$
Reply all
Reply to author
Forward
0 new messages