Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 9 Jul 2013 10:17:22 +0200
From: magnum <>
Subject: Re: String pass to GPU and get back

On 9 Jul, 2013, at 7:31 , marcus.desto <> wrote:
>> 8 July 2013 00:36 magnum <>:
>>> Just looking at your code I think you miss an enqueueReadBuffer() of bufferA before running the kernel.
>> Obviously I meant enqueueWriteBuffer
>> magnum
> You are right.
> queue.enqueueWriteBuffer(bufferA, CL_TRUE, 0, bufferA_size * sizeof(cl_uchar), password);
> was missing, but without it the result was still somehow correct. I am wondering.

Some hardware/software configurations may work without the enqueueWriteBuffer because it ends up a zerocopy anyway. But you should never omit it even if it seems to work. On lots of other platforms it would not have worked at all.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.