Code Monkey home page Code Monkey logo

Comments (5)

davidbeckingsale avatar davidbeckingsale commented on July 17, 2024

I believe that the correct thing to do would be to specify -DCMAKE_CXX_COMPILER=/path/to/gcc5/bin. CMake should then correctly set the host compiler.

What version of CMake are you using?

from umpire.

pchong90 avatar pchong90 commented on July 17, 2024

I am using cmake3.12.1. I tried this by setting -DCMAKE_CXX_COMPILER=/path/to/gcc5/bin. But enable_language(cuda) seems to still use the gcc8 I have in my environment. I will try to load gcc5 to my environment as well.

from umpire.

davidbeckingsale avatar davidbeckingsale commented on July 17, 2024

If you set CMAKE_CXX_COMPILER to be the g++ 5 executable, does it work?

from umpire.

pchong90 avatar pchong90 commented on July 17, 2024

Hi David,
set CMAKE_CXX_COMPILER to g++5 does not help.
set CMAKE_CUDA_HOST_COMPILER to g++5 fixed the issue.
I think it is CMake's issue by not picking up CUDA_NVCC_FLAGS in the enable_language(cuda) function.
I will close this issue, thank you for you help!

from umpire.

davidbeckingsale avatar davidbeckingsale commented on July 17, 2024

I overlooked this the first time, but the flag variable for CUDA flags changed - it's now CMAKE_CUDA_FLAGS. Maybe that would be another fix.

from umpire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.