Class OpenCLKernelLoader

java.lang.Object
org.episteme.nativ.technical.backend.gpu.opencl.OpenCLKernelLoader

public class OpenCLKernelLoader extends Object
Utility to load OpenCL kernel source code from resources.
Since:
2.0
Author:
Silvere Martin-Michiellot
  • Constructor Details

    • OpenCLKernelLoader

      public OpenCLKernelLoader()
  • Method Details

    • loadKernelSource

      public static String loadKernelSource(String path)
      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