mikeseven / node-opencl

Low-level OpenCL 1.x and 2.x bindgings for node.js
156 stars 33 forks source link

Invalid Queue Properties Error on Opencl 2.0 #48

Open jeremydiviney opened 8 years ago

jeremydiviney commented 8 years ago

from the saxpy.js example

the following line produces an error "Invalid Queue Properties"

queue = cl.createCommandQueueWithProperties(context, device, [ cl.QUEUE_PROPERTIES, cl.QUEUE_PROFILING_ENABLE ]);

however the following works:

queue = cl.createCommandQueueWithProperties(context, device, []);

seems to be something wrong with the constants in the array.

mikeseven commented 8 years ago

which GPU do you use? Some (older) GPU don’t provide profiling features.

On Jul 11, 2016, at 12:19 PM, jeremydiviney notifications@github.com<mailto:notifications@github.com> wrote:

from the saxpy.js example

the following line produces an error "Invalid Queue Properties"

queue = cl.createCommandQueueWithProperties(context, device, [ cl.QUEUE_PROPERTIES, cl.QUEUE_PROFILING_ENABLE ]);

however the following works:

queue = cl.createCommandQueueWithProperties(context, device, []);

seems to be something wrong with the constants in the array.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/mikeseven/node-opencl/issues/48, or mute the threadhttps://github.com/notifications/unsubscribe/AAxYLFCXkpTPFwKUZ55KvV9XRvdInGKjks5qUpcwgaJpZM4JJsJW.

—mike

jeremydiviney commented 8 years ago

I have an AMD R7 360, the the profiling works fine, if I am using OpenCL 1.2 on the same GPU.