No idea offhand. Can you build with ASSERTIONS=1 and SAFE_HEAP=1, perhaps
they will find something?

- Alon



On Tue, Feb 25, 2014 at 3:31 PM, wolfviking0 <[email protected]> wrote:

> I have trouble with some sample using fastcomp. With fastcomp seems my ID
> it's lose, or change ... this trouble doesn't appear without fastcomp.
> I add my stack call.
>
> I have some function inside my webcl library who must return an object
> like
>
> cl_mem* clCreateBuffer(...) for do that I just have an map id for return the
> id value, inside the library I have the map [id:WebCLObkect].
>
> After that I can call some other function who take the object in parameter
> like
>
> cl_int<http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/scalarDataTypes.html>
>  *clGetMemObjectInfo* 
> (cl_mem<http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/abstractDataTypes.html>
>  memobj, ...)
>
> cl_int<http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/scalarDataTypes.html>
>  *clEnqueueWriteBuffer* 
> (cl_command_queue<http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/abstractDataTypes.html>
>  command_queue,
> cl_mem<http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/abstractDataTypes.html>
>  buffer, ... )
>
> *This is my call stack without fastcomp : *
>
> clCreateBuffer(525301,1,268435456,0,27440)
>       ->[object WebCLContext].createBuffer(1,268435456,null)
>               =>Result (909733 : 0) - Message () - Exception ()
>
> *->Memory Object created Id : 909733*
>
> clGetMemObjectInfo(909733,4352,4,27440,0) ->[object
> WebCLBuffer].getInfo(4352) =>Result (0 : 4336 - 0) - Message () - Exception
> () clGetMemObjectInfo(909733,4354,4,27448,0) ->[object
> WebCLBuffer].getInfo(4354) =>Result (0 : 268435456 - 0) - Message () -
> Exception () clGetMemObjectInfo(909733,4352,4,27440,0) ->[object
> WebCLBuffer].getInfo(4352) =>Result (0 : 4336 - 0) - Message () - Exception
> () clGetMemObjectInfo(909733,4354,4,27448,0) ->[object
> WebCLBuffer].getInfo(4354) =>Result (0 : 268435456 - 0) - Message () -
> Exception () clEnqueueWriteBuffer(386332,909733,1,0,8388608,5274960,0,0,0)
> ->[object WebCLCommandQueue].enqueueWriteBuffer([object
> WebCLBuffer],1,0,8388608,[-1.9647696883316252e-31,-1.2709163508540441e-24,-0.000008979453014035244,-711603066503168,-4.2744608009686915e-23,-91380368434790400,-4.881537397986719e-32,-2018614093807616,1.1830101364394272e+27,-6.855478400148573e-20,-1.8849221375107978e-16,1.0645598947554194e+21,1.6553163894568702e+29,44886364,-1.4996128823414738e+22,3.272332522180662e-30,-1.8112486405790292e+33,6553.693359375,780405839216431300000,2.5995332544404295e+35,-5717747,-7861456384,-1.7277515839488054e-34,5.809762335371372e+35,-1.8567303185204303e-28,
> ... ,-2.070966242442223e+30],[]) =>Result (0) - Message () - Exception ()
>
> ...
>
>
> *This is my call stack with fastcomp : *
>
> clCreateBuffer(492545,1,268435456,0,27392)
>       ->[object WebCLContext].createBuffer(1,268435456,null)
>               =>Result (599323 : 0) - Message () - Exception ()
>
> *->Memory Object created Id : 599323*
>
> clGetMemObjectInfo(599323,4352,4,27448,0) ->[object
> WebCLBuffer].getInfo(4352) =>Result (0 : 4336 - 0) - Message () - Exception
> () clGetMemObjectInfo(599323,4354,4,27456,0) ->[object
> WebCLBuffer].getInfo(4354) =>Result (0 : 268435456 - 0) - Message () -
> Exception () clGetMemObjectInfo(599323,4352,4,27448,0) ->[object
> WebCLBuffer].getInfo(4352) =>Result (0 : 4336 - 0) - Message () - Exception
> () clGetMemObjectInfo(599323,4354,4,27456,0) ->[object
> WebCLBuffer].getInfo(4354) =>Result (0 : 268435456 - 0) - Message () -
> Exception ()
>
> *->Memory Object must be : 599323 and I have 191821170*
>
> clEnqueueWriteBuffer(151606,191821170,1,191820268,2,0,0,0,0) =>Result
> (-38) - Message (WebCLBuffer '191821170' are not inside the map) -
> Exception () clReleaseMemObject(191821170) =>Result (-38) - Message
> (undefined is not a valid OpenCL memobj) - Exception ()
>
> ...
>
>
>
> Not sure if my explanation it's enough :(, but the call stack show the 
> trouble.
>
>
> Thanks
>
>
> TONY
>
>  --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to