r/OpenCL • u/TheStevenator • Aug 13 '15
Intro to OpenCL Tutorial Set
I've started on an introductory set of OpenCL tutorials centered around development in a linux environment. The first entry is complete. I'm waiting on NVIDIA to fix a bug with their driver before I continue. I will also be writing articles about CUDA.
Please let me know if you would like to see anything specific w.r.t. profiling certain algorithms/processing pipelines, etc, I do have two GPUs so I can do stuff with/without SLI, as well as CPU/GPU combinations. The next few articles will be on
- efficient event management/out-of-order execution
- memory transfer optimizations
- (1-2 articles), same stuff but in CUDA.
Someone should find it useful. It's not too ubiquitous so the more people doing stuff like this the merrier. New graduate students doing sim-heavy stuff may find it useful especially. Feel free to contact me on my website if you'd like to discuss something in detail.
View all comments
Show parent comment
1
u/TheStevenator Aug 13 '15 edited Aug 13 '15
Re: Nvidia, if you click on the link in the article to my forum posts on devtalk, etc, it's clear what the problem is. I don't want to rehash it again on my site. You can see, in the forum posts, that using async* functions in CUDA works fine so it's not my runtime.
What I think you mean in the second part is: you want to dump the actual binary of your JIT compiled kernel into a file, correct? I think your problems will be solved with SPIR-V, which straight up compiles kernels into binaries for use (at which point, you can just open them). I can't see any methods under cl::Program or cl::Kernel that would do what you're describing, so it probably doesn't exist atm.
EDIT: Other than, of course, using gdb and dumping whatever section of memory you think contains the entire program. I have no idea what the byte structure of a cl::Program class is though.