Date: Tue, 9 Jul 2013 10:17:22 +0200 From: magnum <john.magnum@...hmail.com> To: john-dev@...ts.openwall.com Subject: Re: String pass to GPU and get back On 9 Jul, 2013, at 7:31 , marcus.desto <marcus.desto@...pl> wrote: >> 8 July 2013 00:36 magnum <john.magnum@...hmail.com>: >>> 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. magnum
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.