| Summary: | Bug in putCopyBuffer | ||
|---|---|---|---|
| Product: | [JogAmp] Jocl | Reporter: | Matthias Leinweber <leinweberm> |
| Component: | opencl | Assignee: | Michael Bien <bienator> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | gouessej, sgothel |
| Priority: | P4 | ||
| Version: | 1 | ||
| Hardware: | All | ||
| OS: | all | ||
| Type: | --- | SCM Refs: |
d587291ccfc23970647192aeffc99fc60b17829c
|
| Workaround: | --- | ||
Hi Can you provide a unit test just to be sure we know what we are doing? Thx - fixed the copy/paste error w/o unit test (given the state of JOCL and simplicity of bug). |
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 }