Comments (8)
ah there are some issues with structs as the api for inserting instructions changed, and I can't get it quite right.
from coriander.
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.
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.
"Is anyone interested in me pushing this to a PR?"
Yes please :)
(Erased my ridiculously over-long previous reply lol :) )
from coriander.
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.
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.
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.
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)
- cocl_py cuda_sample.cu dont work HOT 3
- when run "make -j 8 tests", something went wrong,seems like the "PIE object" problem. HOT 5
- How much work would it be to update to OpenCL 3.0/Cuda 12...cuda has always been back wards compatable HOT 1
- CMake issues
- Cython Integration
- i.MX8M Vivante GPU not working (Sorry I messed up, delete this)
- i.MX8M Vivante GPU Not Working HOT 1
- MacOS installation error [Errno 2] No such file or directory HOT 3
- tests compilation problem HOT 1
- run install and get error HOT 1
- I'm extremely impressed by this project. HOT 2
- questions about cuda api HOT 1
- Windows installation HOT 1
- help with make run-tests HOT 1
- Issue installing on MacOS10.15.5 HOT 2
- Question about generating an executable with multiple source files HOT 1
- Success compiling and running cuda_example.cu on Apple M1 Big sur HOT 1
- diffs to compile for clang 9
- documenting fix for clang error: reference to host function from device HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coriander.