Bug 573 - Bug in putCopyBuffer
Summary: Bug in putCopyBuffer
Status: RESOLVED FIXED
Alias: None
Product: Jocl
Classification: JogAmp
Component: opencl (show other bugs)
Version: 1
Hardware: All all
: P4 minor
Assignee: Michael Bien
URL:
Depends on:
Blocks:
 
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:
d587291ccfc23970647192aeffc99fc60b17829c
Workaround: ---


Attachments

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
Hi

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).