Login  Register

Re: Why CLEventList has fixed size?

Posted by Michael Bien on Apr 02, 2011; 7:03pm
URL: https://forum.jogamp.org/Why-CLEventList-has-fixed-size-tp2705613p2768103.html

have you tried to create multiple kernel instances? I am not sure if CL allows to bind the same kernel instance to different events/conditions. It is not mentioned explicitly in the spec so the experience may vary between CL implementations.

i only took a quick look at your code but it looks good so far. E.g events and conditions are not mixed etc.

btw many methods allow vargs. Instead of
createCommandQueue(new Mode[]{Mode.OUT_OF_ORDER_MODE,  Mode.PROFILING_MODE});
you can just do
createCommandQueue(Mode.OUT_OF_ORDER_MODE,  Mode.PROFILING_MODE);
or even
createCommandQueue(OUT_OF_ORDER_MODEPROFILING_MODE);
if you static import the Mode enum.

and you should also use the Buffers.newFooBuffer to make your code platform independent if this is your requirement.

I can't find anything wrong in JOCL's high level API, if you still having trouble please provide a self contained test reproducing this issue to speed things up.

best regards,

-michael

On 04/02/2011 01:16 AM, Wibowit [via jogamp] wrote:
I am finally doing some work on topic and have a basic question: how to use CLEventLists?

I have a code: http://pastebin.com/X5NYX2h9
Problematic line is 71. AFAIU condition parameter should be a list of events to wait for completion, and event parameter should be a list to store resulting event. Extracting profiling info from event does work good.

When I run my program in NetBeans then the output is:
run:
1
com.jogamp.opencl.CLException$CLInvalidEventWaitListException: can not enqueue 1DRange CLKernel [id: 140154717645264 name: sortChunks]
 with gwo: null gws: {8388500} lws: {250}
cond.: com.jogamp.opencl.CLEventList[CLEvent [id: 140154720214544 name: NDRANGE_KERNEL status: QUEUED]] events: com.jogamp.opencl.CLEventList[] [error: CL_INVALID_EVENT_WAIT_LIST]
Enqueue-to-submit delay: 2105842 ns
Submit-to-run delay: 8432622 ns
Total running time: 8650142 ns
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/
 <adeiiiklmmnswx________________.//aegiiiklmorwx________________"//::=hipssttwwx________________-LSaacceehimnnst________________"//:=hinoptttwww________________ -.//03ehlmoprtx________________.//egiik
BUILD SUCCESSFUL (total time: 2 seconds)
</raw>
What's wrong with that event wait list?


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Why-CLEventList-has-fixed-size-tp2705613p2765418.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


-- 
- - - -
http://michael-bien.com