Hi Jens, this is something new which we have not seen before.
For some reason blendop.cl can not be built (compiled+linked) by clBuildProgram(). The error code is -30 (CL_INVALID_VALUE) which would indicate we called the routine with wrong parameters. This is a bit surprising as all other kernels are successfully built. So there must be something special with bilateral.cl. As a first step I'd like you to do a quick ad-hoc check. Go into data/kernels/bilateral.cl and replace #ifdef NVIDIA_SM_20 by #ifdef xNVIDIA_SM_20 This will avoid our NVIDIA specific asm inline. That's one of the few things which make bilateral.cl different from all other kernels. Ulrich Am 29.10.2012 16:11, schrieb Jens Fendler: > Hi all, > > I just got a new laptop, which I would like to use for DT processing. > One problem, however, seems to be the NVidia Optimus graphics card, > which gives me problems with the OpenCL acceleration in darktable. > Everything else I've tried so far sems to work fine with bumblebee's > "optirun". (Though I haven't yet tried any other OpenCL apps yet). > > When starting DT, the compilation of blendop.cl fails with error code > -30 (kernels before that have been compiled fine). I was assuming > optirun being necessary for running OpenCL, but nothing changes even > when trying to run it on its own - OpenCL still looks OK (i.e. detects > the nvidia card), but blendop.cl compilation fails. Subsequently, dt > continues without OpenCL support. > > I then tried to disable only blendop.cl by commenting it out in > programs.conf. When now running without optirun, dt compiles all > remaining kernels, and I get the message "...FINALLY: opencl is > AVAILABLE...". But then dt tells me it can't create most of the kernels > (error codes either -44 or -46), while some kernels seem to work just > fine. This combination (i.e. not using optirun, blendop.cl disabled) > seems to be the only on in which I get at least some OpenCL working. > > Running though optirun with blendop.cl disabled (being the combination I > expected to work as well) is actually the wost: while I still get the > message OpenCL would be available, dt then segfaults.. > > I have attached log files (created with -d opencl) for each of the 4 > combinations, as well as the stacktrace in the hope that someone here > might have an idea what the problem could be. > > If it helps, I'd be willing to run almost every test you guys would have > for me to track this issue down.. please let me know if you need any > further information, files, etc.. and I'll provide what I can. > > Thanks, > Jens ------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ darktable-devel mailing list darktable-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/darktable-devel