Note that GroIMP IMP plugin should automatically handle the load and use of JOCL by default. So this tutorial is only to use if You want to load JOCL without IMP.
After having checked out the GPUFlux project into Eclipse, you need to setup OpenCL for GPUFlux to build and run.
To enable GPUFlux, you need to perform the following steps:
Download and install one or several of the available OpenCL implementations. Each implementation supports a specific set of hardware types. Install the appropriate implementations so that each of you devices is supported by at least one installed implementation. The following are some of the major implementations of OpenCL currently available:
apt install pocl-opencl-icd
)Note: the AMD APP SDK supports all AMD and Intel x86 and x64 CPUs.
JOCL is a Java bindings for OpenCL. Download JOCL on your computer. A prebuild version can be found in the Maven Central Repository .
To setup JOCL for GPUFlux, add a user library JOCL
to Eclipse. Add the jocl archive to the library. Then add the JOCL user library to the GPUFlux and Platform-Core projects. GPUFlux is now able to build and run.