Git Product home page Git Product logo

Comments (3)

mstimberg avatar mstimberg commented on June 12, 2024

Just for reference: it's of course the same issue for brian2genn, which now has a devices.genn.extra_compile_args_nvcc preference which is passed to the nvcc call. It also uses the flags returned by get_compiler_and_args (i.e. the gcc or msvc arguments, depending on the system) for the standard C++ compiler calls.

from brian2cuda.

denisalevi avatar denisalevi commented on June 12, 2024

Oh yeah, right. Thanks for pointing it out.
So looking at the brian2genn makefile template and the GeNN makefile (and the corresponding WIN versions) should give a good idea on how to do this.
And brian2genn also uses its own get_compile_args(), defined in brian2genn/device.py.

from brian2cuda.

mstimberg avatar mstimberg commented on June 12, 2024

Just one more comment on that: you should be fine with just using Brian's standard get_compiler_and_args (which gives you the msvc preferences on a Windows system, and the gcc preferences otherwise). The reason why brian2genn has its own get_compile_args is that GeNN itself does code generation and has two separate preferences for Windows and Linux/OS-X, so we simply give it both.

from brian2cuda.

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.