Bug 573 - Bug in putCopyBuffer
Summary: Bug in putCopyBuffer
Alias: None
Product: Jocl
Classification: JogAmp
Component: opencl (show other bugs)
Version: 1
Hardware: All all
: P4 minor
Assignee: Michael Bien
Depends on:
Reported: 2012-04-05 11:24 CEST by Matthias Leinweber
Modified: 2013-10-12 22:19 CEST (History)
2 users (show)

See Also:
Type: ---
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Leinweber 2012-04-05 11:24:08 CEST
Maybe a copy&paste mistake in CLCommandqueue.java:

     * Calls {@native clEnqueueCopyBuffer}. 
    public CLCommandQueue putCopyBuffer(CLBuffer<?> src, CLBuffer<?> dest, int srcOffset, int destOffset, long bytesToCopy, CLEventList events) { 
        return putCopyBuffer(src, dest, 0, 0, bytesToCopy, null, events); 
                                        ^  ^  should be srcOffset, destOffset 
Comment 1 Julien Gouesse 2013-03-27 13:52:30 CET

Can you provide a unit test just to be sure we know what we are doing?
Comment 2 Sven Gothel 2013-10-12 22:19:07 CEST
Thx - fixed the copy/paste error w/o unit test (given the state of JOCL and simplicity of bug).