-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ulrich,

thanks, but both options fail with code -30 just as before.

Jens

On 10/30/2012 07:20 PM, Ulrich Pegelow wrote:
> Hi Jens,
> 
> strange, that kernel is probably the least thrilling in there. The
> only thing I could imagine is some problem of your compiler. Here
> are a few ad-hoc ideas:
> 
> a)
> 
> __kernel void blendop_mask_RAW (__read_only image2d_t in_a,
> __read_only image2d_t in_b, __write_only image2d_t mask, const int
> width, const int height, const float gopacity, const int blendif,
> global const float *blendif_parameters) { const int x =
> get_global_id(0); const int y = get_global_id(1);
> 
> if(x >= width || y >= height) return;
> 
> float opacity = gopacity;
> 
> write_imagef(mask, (int2)(x, y), opacity); }
> 
> 
> b)
> 
> __kernel void blendop_mask_RAW (__read_only image2d_t in_a,
> __read_only image2d_t in_b, __write_only image2d_t mask, const int
> width, const int height, const float gopacity, const int blendif,
> global const float *blendif_parameters) { const int x =
> get_global_id(0); const int y = get_global_id(1);
> 
> if(x >= width || y >= height) return;
> 
> write_imagef(mask, (int2)(x, y), (float4)gopacity); }
> 
> 
> Ulrich
> 
> Am 30.10.2012 16:37, schrieb Jens Fendler:
>> Hi all,
>> 
>> thanks a lot for your support sp far, but so far it seems
>> nothing really worked. I always get stuck at the same point,
>> which is: other GL apps run fine through optirun, but darktable's
>> openCL support fails when it comes to compiling blendop.cl.
>> 
>> However, I could make some progress (still testing) by removing 
>> individual kernels from blendop.cl. The problem seems to be with
>> one kernel only: __kernel void blendop_mask_RAW( ... ). In
>> particular, the problem is with the last statement: 
>> write_imagef(mask, (int2)(x, y), gopacity);
>> 
>> If that last line is commented out, dt compiles all openCL code 
>> flawlessly and seems to work just fine.
>> 
>> The only significant difference I see between those
>> blendop_mask_* kernels is that the RAW version doesn't call
>> read_imagef() first.. well, I actually have no clue when it comes
>> to OpenCL.. it's just what I noticed for now.
>> 
>> Can someone please suggest a way forward from here?
>> 
>> Thanks a lot, Jens
>> 
>> PS: Johannes and Kevin: you both mentioned running dt on optimus
>> cards as well. Does one of you happen to also have the same card
>> (i.e. GT640M)?
>> 
> 
> ------------------------------------------------------------------------------
>
> 
Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics
> Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct 
> _______________________________________________ darktable-devel
> mailing list darktable-devel@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/darktable-devel
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCQDuIACgkQbyTZFOIr/d0dRwCgjEzNlnLVLwjNLDXXPdOcA+hn
HbUAn2aNAl4SHTTzvZEcsiUYbkNEKfNX
=5tCd
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to