Note that there are some explanatory texts on larger screens.

plurals
  1. POCUDA 5.0, CMake and Make failing on OSX 10.8.3
    primarykey
    data
    text
    <p>I try to compile a simple CUDA "Hello World" using CMake on my Mac OSX 10.8.3.</p> <p>Calling <code>cmake .</code> seems to succeed. Here is my <code>CMakeList.txt</code>:</p> <pre><code>project(HelloWorld) cmake_minimum_required(VERSION 2.8) FIND_PACKAGE(CUDA) CUDA_INCLUDE_DIRECTORIES(/Developer/NVIDIA/CUDA-5.0/samples/common/inc) CUDA_ADD_EXECUTABLE(helloWorld helloWorld.cu) </code></pre> <p>... and the output:</p> <pre><code>-- The C compiler identification is Clang 4.2.0 -- The CXX compiler identification is Clang 4.2.0 -- 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: /Developer/NVIDIA/CUDA-5.0 (found version "5.0") -- Configuring done -- Generating done -- Build files have been written to: /Users/mennny/Documents/UNI/6_Semester/0_PMPP/1_exercises/cuda-hello-world </code></pre> <p>But calling <code>make</code> afterwards fails with the following error(s):</p> <pre><code>[100%] Building NVCC (Device) object CMakeFiles/helloWorld.dir//./helloWorld_generated_helloWorld.cu.o clang: error: unsupported option '-dumpspecs' clang: error: no input files CMake Error at helloWorld_generated_helloWorld.cu.o.cmake:206 (message): Error generating /Users/mennny/Documents/UNI/6_Semester/0_PMPP/1_exercises/cuda-hello-world/CMakeFiles/helloWorld.dir//./helloWorld_generated_helloWorld.cu.o make[2]: *** [CMakeFiles/helloWorld.dir/./helloWorld_generated_helloWorld.cu.o] Error 1 make[1]: *** [CMakeFiles/helloWorld.dir/all] Error 2 make: *** [all] Error 2 </code></pre> <p>I googled the shown errors but couldn't find any sufficient answers. Any ideas why <code>make</code> fails, although <code>cmake</code> succeeded.</p> <p>Thanks for your help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload