-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make nativePointer readable from the outside #26
Conversation
by chaning its access to public
I usually hesitate when making something If you added a word of caution, like this...
then I'd merge it, and schedule an update. * My hesitation to make things like this (One could argue that there should also be a constructor that receives the |
Hi @gpu, great, thanks for your efforts! And thanks for your detailed explanation. We're absolutely aware of these issues and we're happy to take care of them. Making OpenCL exploitable for end users without compatibility and interoperability issues is our mission and obviously also yours. Thanks for your support and thanks for making JOCL! It's an amazing bridge enabling so many things in our tiny image processing universe! Merry Christmas! 🎄 Cheers, |
Apologies for some non-PR-related chit-chat here: I've skimmed over the projects that this related to, and many of them really look interesting. Some fairly random pointers to what I mean:
I'd have to invest more time to have a closer look at all this.... |
If you don't update the PR with the additional comment, I'd do this directly in the master branch ASAP. |
Hi @gpu ah sorry, I was sleeping ;-) I just added the comment. Thanks for your support! Cheers, |
Thanks, merged it. But I still have to schedule an update for the maven release. (I'm rather busy ATM, there's an update for JCuda on the way, but I hope that I can finish that this week, so next week might be the time for an update of JOCL) |
Cool, thanks, @gpu! Keep us posted 😉 Cheers, |
Version 2.0.2, with
Please open an issue if you encounter any problems. |
Thanks @gpu . The intended use case of this is to make it easy to call existing c/c++ opencl algorithms (like deconvolution) from @haesleinhuepf's CLIJ project. The idea is to make simple wrappers around existing code build on clFFT. An alternative could of been to wrap all of clFFT, however that could be a huge undertaking (I don't know for sure) plus the idea of CLIJ is to make it easy for intermediate level programmers (mainly biologists) to write GPU image processing code. I think that clFFT is a pretty obtuse API, and exposing a subset with a simplified API, would be a better fit for the intended users, than exposing the entire clFFT API. |
Are you referring to the clFFT from https://github.com/clMathLibraries ? Quite a while ago, I tackled their clBLAS bindings, and have some code generator infrastructure that could cover some of the work that has to be done for clFFT as well. But the development of the AMD CL* libraries seems to have stopped (and compiling these libraries was a bit difficult back then - I think I remember some dependency hassle that I went through). So now there is https://github.com/gpu/JOCLBlast for the (more mature, simple and actively developed) https://github.com/CNugteren/CLBlast/ . Also, I think there is not sooo much demand for GPU-based FFT from Java - CLIJ and image processing being a "niche case" here. |
Yes. It looks like clFFT is also being maintained by ArrayFire here. In CLIJ and image processing there is a need for high performance FFT, a OpenCL BLAS implementation and (eventually) Wavelets. Thanks for the link to the BLAS implementations, those could be useful too. |
Dear @gpu ,
we (CC @bnorthan) recently came across the issue that we cannot access the nativePointer inside the NativePointerObject class. However, this would be very useful to bridge towards other OpenCL-libraries as discussed here:
https://forum.image.sc/t/high-performance-fft-based-algorithms-deconvolution/31710/38
Would you mind merging this PR and deploying a new JOCL?
Thanks a lot in advance!
Cheers,
Robert