Skip to content

Instantly share code, notes, and snippets.

@sithhell
Created October 4, 2017 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sithhell/8eec84ec4293203233785f6435511b4e to your computer and use it in GitHub Desktop.
Save sithhell/8eec84ec4293203233785f6435511b4e to your computer and use it in GitHub Desktop.
cmake ~/hpx-tutorial/examples/00_hello_world/ && make
-- The CXX compiler identification is Clang 6.0.0
-- Check for working CXX compiler: /apps/daint/UES/6.0.UP04/llvm/bin/clang++
-- Check for working CXX compiler: /apps/daint/UES/6.0.UP04/llvm/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is Clang 6.0.0
-- Check for working C compiler: /apps/daint/UES/6.0.UP04/llvm/bin/clang
-- Check for working C compiler: /apps/daint/UES/6.0.UP04/llvm/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Using JEMALLOC allocator.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /opt/nvidia/cudatoolkit8.0/8.0.61_2.4.3-6.0.4.0_3.1__gb475d12 (found version "8.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /users/course65/thomas_build/00_hello_world
Scanning dependencies of target hello_world
[ 50%] Building CXX object CMakeFiles/hello_world.dir/hello_world.cpp.o
[100%] Linking CXX executable hello_world
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lcudart
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
CMakeFiles/hello_world.dir/build.make:122: recipe for target 'hello_world' failed
make[2]: *** [hello_world] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/hello_world.dir/all' failed
make[1]: *** [CMakeFiles/hello_world.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment