Hi Alon, I have some other sample who give some weird result. The c++ code 
failed at the beginning.

C++ Code
--------------

cl_mem device;
clGetDeviceIDs(0,CL_DEVICE_GPU,1,&device,0)

JS Code
------------
clGetDeviceIDs(0,2,1,328,0)
->[object WebCL].getPlatforms()
->[object WebCLPlatform].getDevices(2)
=>Result (0 : 936317 - 0) - Message () - Exception ()


Something it's weird with the value of '&device' and seems to be the 
trouble. I build with ASSERTION and SAFE_HEAP and the result give an 
assertion just after this call :

[Error] Assertion failed: undefined
printErr (settings.js, line 173)
abort (osx_scan.js, line 14888)
assert (osx_scan.js, line 731)
SAFE_HEAP_STORE (osx_scan.js, line 690)
_main (osx_scan.js, line 11576)
callMain (osx_scan.js, line 14791)
doRun (osx_scan.js, line 14844)
(anonymous function) (osx_scan.js, line 14856)
[Error] abort() at 
stackTrace@file:///Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-osx-sample/build/osx_scan.js:1244:24
abort@file:///Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-osx-sample/build/osx_scan.js:14894:35
assert@file:///Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-osx-sample/build/osx_scan.js:731:10
SAFE_HEAP_STORE@file:///Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-osx-sample/build/osx_scan.js:690:9
_main@file:///Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-osx-sample/build/osx_scan.js:11576:17
callMain@file:///Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-osx-sample/build/osx_scan.js:14791:30
doRun@file:///Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-osx-sample/build/osx_scan.js:14844:25
file:///Volumes/APPLE_MEDIA/WORKSPACE/webcl/webcl-osx-sample/build/osx_scan.js:14856:24
callMain (osx_scan.js, line 14813)
doRun (osx_scan.js, line 14844)
(anonymous function) (osx_scan.js, line 14856)

Is this talk to you ??

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.

Reply via email to