Loading... |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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. |
Loading... |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The path to the opencl directory was
"/abc/ade sdgfe/opencl" with "/abc/ade_sdgfe/opencl" works the opencl compiler. Is this a problem with the jocl implementation or with the nvidia sdk? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I prefer using simple String concatenation to create programs since it ensures best portability. I haven't used the include mechanism yet. But it should work... its completely jocl independent, all IO is done by the OpenCL implementation. -michael On 08/06/2010 06:36 PM, Siassei [via jogamp] wrote: The path to the opencl directory was |
Loading... |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
> But it should work... its completely jocl independent, all IO is done by the OpenCL implementation.
Ok. With withespace the compiler doesn't found the include files. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
whitespace is usually not a path seperator, thats why i asked. Usually
it is : or ; dependent on the OS. On 08/06/2010 09:09 PM, Siassei [via jogamp] wrote: > > But it should work... its completely jocl independent, all IO is > done by the OpenCL implementation. > Ok. With withespace the compiler doesn't found the include files. |
Loading... |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Directory-Name with whitespace
e.g. Windows XP - 6 german C:\Dokumente und Einstellungen\... or /home/myName/dev/Viewer OpenCL\... OpenCL can not found any file in a directory, that path has a withespace. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
you will have to escape the whitespace character otherwise the OpenCL impl might interpret it as multiple compiler arguments instead of one argument.
http://en.wikipedia.org/wiki/String_literal#Escape_character
|
Free forum by Nabble | Edit this page |