Hello,
I has some include and will compile the kernel-function. I do that with
// Language: Scala
val file = new File("opencl/main.cl")
val dir = new File("opencl/")
program = context.createProgram(new FileInputStream(file))
val cfg = program.prepare
cfg.withOption("-I "+ dir.getAbsolutePath)
program = cfg.build // boom --> error
error message:
Cann't build Program
com.jogamp.opencl.CLException$CLBuildProgramFailureException:
Exception in thread "main" com.jogamp.opencl.CLException$CLInvalidProgramExecutableException: unable to create Kernel with name: computeImage
CLDevice [id: 139942249771808 name: GeForce 9800 GT type: GPU profile: FULL_PROFILE] build log:
:38: error: 'constant.cl' file not found
#include "constant.cl"
^
:39: error: 'vector.cl' file not found
error: CL_INVALID_PROGRAM_EXECUTABLE (man page:
http://www.khronos.org/opencl/sdk/1.1/docs/man/xhtml/errors.html)
#include "vector.cl"
^
:40: error: 'geometrie.cl' file not found
#include "geometrie.cl"
... and so on
It's possible to link opencl-files with jocl?
All files are in the opencl directory.