javascript - Embed V8 in OpenCL application? -


i using opencl write gpgpu kernels target nvidia cuda runtime. reading on v8 , found page describing v8 embedding techniques:

http://code.google.com/apis/v8/embed.html

is possible 'wrap' opencl functions in v8 'templates' can write kernel logic in javascript?

for reference, links opencl 1.1 c++ bindings on khronos web site.

my main concern opencl relies heavily on opengl. v8 opencl wrapper entail wrapping large portions of opengl (or prohibitively, closed-source cuda runtime) well? or impossible reconcile v8 virtual machine , cuda runtimes?

it may "possible" infeasible , impractical. interpreters inherently serial processors. have spawn interpreter each thread ( or @ least each thread group using shared memory, have deal threads stomping on each other if used same interpreter instance ). video cards not have memory this. suppose map shared host memory around this.

bottom line.

possible yes, defeat purpose of opencl being fast , literally hundreds if not millions of times slower , extremely hard implement.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -