GithubHelp home page GithubHelp logo

Comments (2)

jzmaddock avatar jzmaddock commented on August 28, 2024

I think I will make this change, but there is a catch here:

  • As things stand, clang is configured as gcc, but since it only claims to be gcc-4.2 a rather limited number of features get enabled.
  • If we configure as clang, then we might possibly enable features which are not supported by the nvcc front end - unfortunately nvcc doesn't just pre-process the .cu files to split out host and device code, it actually passes then through it's compiler (or something like a compiler). As a result if we use a language feature that's unknown to the latest gcc version supported by nvcc, then it's also unknown to the nvcc front end and results in an error.

Fortunately, latest releases of nvcc seem to be reasonable feature complete, so hopefully this won't result in too many issues. I predict ructions come C++20 though :(

from config.

jzmaddock avatar jzmaddock commented on August 28, 2024

.... Normally the ultimate fix for complex setups is to use the configure script to generate a custom config, would need to use the -x cu option to nvcc so that the .cpp files are treated as .cu files.

from config.

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.