[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Cuda and CMake

Asked by letharion in Miscellaneous Programming, C Programming Language

Not really sure which category this fits in, but here goes.

What I do and what happens below.
Very new to CMake, just built a simple hello world app before this.

Has anyone used this before?
I tried experimenting with exporing the variables pointing to the cmake scripts, but either I don't understand what they should point too, or the problem is somewhere else.

Please advise :)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
$ svn co https://gforge.sci.utah.edu/svn/findcuda/trunk FindCUDA
$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/letharion/FindCUDA
$ make
[ 16%] Building NVCC (Device) object src/./cuda_compile_generated_test_bin.cu.o
Scanning dependencies of target cuda_compile_example
[ 33%] Building CXX object src/CMakeFiles/cuda_compile_example.dir/main.cc.o
Linking CXX executable cuda_compile_example
[ 33%] Built target cuda_compile_example
[ 50%] Building NVCC (Device) object src/./test_lib_generated_test_lib.cu.o
Scanning dependencies of target test_lib
Linking CXX shared library libtest_lib.so
[ 50%] Built target test_lib
Scanning dependencies of target lib_example
[ 66%] Building CXX object src/CMakeFiles/lib_example.dir/main_for_lib.cc.o
Linking CXX executable lib_example
[ 66%] Built target lib_example
[ 83%] Building NVCC (Device) object src/./test_generated_test_bin.cu.o
Scanning dependencies of target test
[100%] Building CXX object src/CMakeFiles/test.dir/main.cc.o
Linking CXX executable test
[100%] Built target test
$ mkdir test && cd test && vim CMakeLists.txt
$ cat CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake/cuda" ${CMAKE_MODULE_PATH})
FIND_PACKAGE(CUDA)
 
$ cmake .
CMake Warning at CMakeLists.txt:3 (FIND_PACKAGE):
Could not find module FindCUDA.cmake or a configuration file for package
CUDA.
 
Adjust CMAKE_MODULE_PATH to find FindCUDA.cmake or set CUDA_DIR to the
directory containing a CMake configuration file for CUDA. The file will
have one of the following names:
 
CUDAConfig.cmake
cuda-config.cmake
 
 
 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/letharion/FindCUDA/test
[+][-]09/10/09 03:20 AM, ID: 25298764Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/10/09 05:03 AM, ID: 25299308Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/10/09 05:03 AM, ID: 25299313Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/09 07:14 AM, ID: 25335091Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Miscellaneous Programming, C Programming Language
Sign Up Now!
Solution Provided By: letharion
Participating Experts: 1
Solution Grade: A
 
[+][-]09/15/09 07:15 AM, ID: 25335095Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625