Bug 573

Summary: Bug in putCopyBuffer
Product: [JogAmp] Jocl Reporter: Matthias Leinweber <leinweberm>
Component: openclAssignee: Michael Bien <bienator>
Status: RESOLVED FIXED    
Severity: minor CC: gouessej, sgothel
Priority: P4    
Version: 1   
Hardware: All   
OS: all   
Type: --- SCM Refs:
d587291ccfc23970647192aeffc99fc60b17829c
Workaround: ---

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