Based on the linked thread here: GPU processing with opengl and compute shaders - #10 by oli1
I am looking into the basics of adding OpenCL and CUDA programming. Here are the three best references I have found on getting started with this:
- https://github.com/ProjectPhysX/OpenCL-Wrapper
- https://stackoverflow.com/a/57017982/10305478
- https://medium.com/@pratikone/opencl-on-visual-studio-configuration-tutorial-for-the-confused-3ec1c2b5f0ca
The first two pertain to the OpenCL Wrapper project, which makes it much easier to use. The third is about using basic raw OpenCL.
Does anyone know one could implement the OpenCL Wrapper in a JUCE project?
In the OpenCL Wrapper GitHub page, examples are given for how much this project can simplify the OpenCL code which looks nice. But they only provide instructions for “compiling” the project. I have no idea what this provides or how to then add it to a JUCE project.
ie. They say for Windows:
Download and install Visual Studio Community. In Visual Studio Installer, add: Desktop development with C++ MSVC v142 Windows 10 SDK Open OpenCL-Wrapper.sln in Visual Studio Community. Compile and run by clicking the ► Local Windows Debugger button.
Okay, but then what?
Let’s say you have created a synthesiser project using the Projucer like the usual instructions. In very simple and step-by-step terms, how do we add the OpenCL project or built result (whatever that is) to it?
Any ideas? If we can work out a basic workflow we could all experiment with this perhaps and it may yield interesting results and bring the technology forward. ![]()
Thanks for any thoughts.
