Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A ASGarD
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FK6D
  • ASGarD
  • Issues
  • #22

Closed
Open
Created Aug 08, 2018 by Green, David@dg6Owner

Building on a system without CUDA

How do I build on a system without CUDA?

[fk6d@fk6d build]$ cmake -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_CUDA_COMPILER=mpicxx -DCMAKE_CXX_FLAGS=-g ../
-- The CXX compiler identification is GNU 8.1.1
-- The CUDA compiler identification is unknown
-- Check for working CXX compiler: /usr/lib64/openmpi/bin/mpicxx
-- Check for working CXX compiler: /usr/lib64/openmpi/bin/mpicxx -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/lib64/openmpi/bin/mpicxx
-- Check for working CUDA compiler: /usr/lib64/openmpi/bin/mpicxx -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCUDACompiler.cmake:46 (message):
  The CUDA compiler

    "/usr/lib64/openmpi/bin/mpicxx"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/fk6d/code/FK6D/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/gmake" "cmTC_22761/fast"
    /usr/bin/gmake -f CMakeFiles/cmTC_22761.dir/build.make CMakeFiles/cmTC_22761.dir/build
    gmake[1]: Entering directory '/home/fk6d/code/FK6D/build/CMakeFiles/CMakeTmp'
    Building CUDA object CMakeFiles/cmTC_22761.dir/main.cu.o
    /usr/lib64/openmpi/bin/mpicxx     -x cu -c /home/fk6d/code/FK6D/build/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_22761.dir/main.cu.o
    g++: error: language cu not recognized
    g++: error: language cu not recognized
    gmake[1]: *** [CMakeFiles/cmTC_22761.dir/build.make:66: CMakeFiles/cmTC_22761.dir/main.cu.o] Error 1
    gmake[1]: Leaving directory '/home/fk6d/code/FK6D/build/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:126: cmTC_22761/fast] Error 2
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:10 (project)


-- Configuring incomplete, errors occurred!
See also "/home/fk6d/code/FK6D/build/CMakeFiles/CMakeOutput.log".
See also "/home/fk6d/code/FK6D/build/CMakeFiles/CMakeError.log".
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking