Git Product home page Git Product logo

Comments (4)

FdyCN avatar FdyCN commented on August 29, 2024 1

@Robadob thanks for ur reply. i tried to overload operator in the a header which will be included in my kernel source. And it works, that's nice. i will keep following this header and your job ,it's really helpful. thank you again.

from jitify.

Robadob avatar Robadob commented on August 29, 2024

We actively use it as part of FLAMEGPU2 (https://github.com/FLAMEGPU/FLAMEGPU2).

We've been using it with CUDA versions from 10.2-11.4, without any problems related to changes within CUDA.

from jitify.

FdyCN avatar FdyCN commented on August 29, 2024

@Robadob
Thank you for ur reply. I still have one more question.
is it possible to overload operator "+-*/" in the ".cuh" header like those in example_headers, and using these overloading in the headers who are included in the kernel string?? seems hard to approach, cause kernel string has specified extern "C", i try to remove extern "C", but nvrtc will return error. is there any possibility to overloader operators?? thanks a lot!

from jitify.

Robadob avatar Robadob commented on August 29, 2024

I'm not sure what example you're referring to, but operator overloading works.

We've used operator overloads in some of our own code (e.g.) and it's also heavily use by GLM a header library we sometime use within NVRTC compiled kernels.

The main challenge with NVRTC compilation is that host code and system headers are not supported. So you have to be very careful in what the compiler sees. Jitify only helps in this manner by providing an incomplete set of drop-in system header replacements that might be wanted in device code. There can still be some effort required to get existing headers to be supported by NVRTC/Jitify.

from jitify.

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.