Code Monkey home page Code Monkey logo

Comments (8)

dokipen3d avatar dokipen3d commented on June 10, 2024

ah there are some issues with structs as the api for inserting instructions changed, and I can't get it quite right.

from coriander.

dokipen3d avatar dokipen3d commented on June 10, 2024

actually, things aren't so successful. I'm getting nullptr returned from MDevice->getFunction(info->kernelName); in getLaunchTypes and it can't find a kernel. no idea why. Not even sure why some things were working before. I think I might have had clang 10 in my path still.

I'll pause for a while on this as I wan't to learn a bit more about llvm modules befire I hack any more. Also I want to do some cuda coding!

from coriander.

dokipen3d avatar dokipen3d commented on June 10, 2024

the struct test fails to compile on llvm 9 and above. other ones seem to work but for now, the most stable seems to be 8 (so far from the tests ive been trying out).

from coriander.

hughperkins avatar hughperkins commented on June 10, 2024

"Is anyone interested in me pushing this to a PR?"

Yes please :)

(Erased my ridiculously over-long previous reply lol :) )

from coriander.

dokipen3d avatar dokipen3d commented on June 10, 2024

Thank you very much for all of the advice Hugh. Some very good points there. I myself am quite fond of nvidia and have always used their cards ( I've owned GeForce 6600 GT, 8800 GS, GTX 460, GTX 770 and now 1080 in my lifetime). I'm pursuing this mainly as a way to be able to enable small educational projects on various hardware such as lower end laptops and mini pcs. Its probably something I'l dive in and out of over months/years.

Cheers!

from coriander.

dokipen3d avatar dokipen3d commented on June 10, 2024

More thoughts on spirv. There are actually two 'dialiects' of spirv, one for opencl and one for vulkan. There is an unofficial google project clspv that translates opencl LLVM IR into vulkan SPIRV. So I'm currently looking at possible ways forward. The cool thing about vulkan spirv is that it supports subgroup operations which includes shuffle(), that you commented on in your very nice paper.

Amazingly, even the new opencl 3.0 spec does not have subgroup shuffle and is an intel extension. so if we can go from Nvidia Cuda kernel to OpenCL, we would have to delve into weird extension territory. But a route to vulkan spirv is certainly possible.

I'm currently learning about address spaces and IR which is fun. Last week I went down the Machine Learning rabbit hole and this week this. Fun times.

from coriander.

hughperkins avatar hughperkins commented on June 10, 2024

I've created a branch llvm-13. I just changed a few things, certainly not all, and it doesnt compile yet, and I havent tested it. Perhaps any work on making things compatible with recent-er versions of llvm can go into this branch for now?

from coriander.

dokipen3d avatar dokipen3d commented on June 10, 2024

Hi Hugh, yeah sounds good. I haven't looked too much into this recently, but if get a chance, i'll take a look :)

from coriander.

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.