Class OpenCLKernelLoader
java.lang.Object
org.episteme.nativ.technical.backend.gpu.opencl.OpenCLKernelLoader
Utility to load OpenCL kernel source code from resources.
- Since:
- 2.0
- Author:
- Silvere Martin-Michiellot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringloadKernelSource(String path) Loads the content of an OpenCL source file from the classpath.
-
Constructor Details
-
OpenCLKernelLoader
public OpenCLKernelLoader()
-
-
Method Details
-
loadKernelSource
Loads the content of an OpenCL source file from the classpath.- Parameters:
path- the path to the .cl file (e.g., "/kernels/opencl/vision_kernels.cl")- Returns:
- the source code as a String
- Throws:
RuntimeException- if the file cannot be found or read
-