bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.55k stars 2.87k forks source link

crash on MacOSX 10.8.5 #25

Closed conversy closed 10 years ago

conversy commented 10 years ago

Hello,

The program launches, but crashes almost immediately (a window with a cube made of cubes appears, no interaction, crash).

I made it with premake4osx, make config=debug32. Other test programs seem to work (e.g. ImplicitCloth, simpleOpenGL3, Test* except 'initialize' which fails at allocating 925 Mb)

Cheers,

Stéphane

here is the bt: Reading symbols for shared libraries . done

Program received signal SIGABRT, Aborted. 0x9188ea6a in __pthread_kill () (gdb) bt

0 0x9188ea6a in __pthread_kill ()

1 0x9a340b2f in pthread_kill ()

2 0x9a377631 in abort ()

3 0x00747318 in gpusKillClient ()

4 0x00747d16 in gpusQueueSubmitDataBuffers ()

5 0x05e32a20 in gldClearFramebufferData ()

6 0x05e328d0 in gldClearFramebufferData ()

7 0x05e32cba in gldFinishQueue ()

8 0x984ff391 in dyld_stub__CSCheckFix ()

9 0x9851af23 in clFlush ()

10 0x943ccc82 in _dispatch_client_callout ()

11 0x943d1d2f in _dispatch_barrier_sync_f_slow ()

12 0x943ce3fb in dispatch_barrier_sync_f ()

13 0x9851b009 in clFinish ()

14 0x001fbdb0 in b3GpuPgsContactSolver::solveContacts (this=0x1341a10, numBodies=1001, bodyBuf=0x133c720, inertiaBuf=0x133c340, numContacts=18523, contactBuf=0x133c0c0, config=@0x122bdb0, static0Index=0) at ../../src/Bullet3OpenCL/RigidBody/b3GpuPgsContactSolver.cpp:1042

15 0x00207d27 in b3GpuRigidBodyPipeline::stepSimulation (this=0x122bd10, deltaTime=0.0166666675) at ../../src/Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.cpp:419

16 0x0004883d in GpuRigidBodyDemo::clientMoveAndDisplay (this=0x1225f10) at ../../Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.cpp:225

17 0x00013859 in main (argc=1, argv=0xbffff8d8) at ../../Demos3/GpuDemos/main_opengl3core.cpp:988

the init part:

Demo settings: SelectedDemo=1, demoname = BoxBox x_dim=10, y_dim=10, z_dim=10 x_gap=16.299999, y_gap=6.300000, z_gap=16.299999

OpenCL settings: Preferred cl_device index -1 Preferred cl_platform index-1

Platform info: CL_PLATFORM_VENDOR: Apple CL_PLATFORM_NAME: Apple CL_PLATFORM_VERSION: OpenCL 1.2 (Apr 25 2013 18:32:03)

Device Info: CL_DEVICE_NAME: ATI Radeon HD 6750M CL_DEVICE_VENDOR: AMD CL_DRIVER_VERSION: 1.0 CL_DEVICE_TYPE: CL_DEVICE_TYPE_GPU CL_DEVICE_MAX_COMPUTE_UNITS: 6 CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS: 3 CL_DEVICE_MAX_WORK_ITEM_SIZES: 1024 / 1024 / 1024 CL_DEVICE_MAX_WORK_GROUP_SIZE: 1024 CL_DEVICE_MAX_CLOCK_FREQUENCY: 600 MHz CL_DEVICE_ADDRESS_BITS: 32 CL_DEVICE_MAX_MEM_ALLOC_SIZE: 256 MByte CL_DEVICE_GLOBAL_MEM_SIZE: 1024 MByte CL_DEVICE_ERROR_CORRECTION_SUPPORT: no CL_DEVICE_LOCAL_MEM_TYPE: local CL_DEVICE_LOCAL_MEM_SIZE: 32 KByte CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE: 64 KByte CL_DEVICE_QUEUE_PROPERTIES: CL_QUEUE_PROFILING_ENABLE CL_DEVICE_IMAGE_SUPPORT: 1 CL_DEVICE_MAX_READ_IMAGE_ARGS: 128 CL_DEVICE_MAX_WRITE_IMAGE_ARGS: 8

CL_DEVICE_IMAGE 2D_MAX_WIDTH 8192 2D_MAX_HEIGHT 8192 3D_MAX_WIDTH 2048 3D_MAX_HEIGHT 2048 3D_MAX_DEPTH 2048

CL_DEVICE_EXTENSIONS:cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store CL_DEVICE_PREFERRED_VECTORWIDTH CHAR 16, SHORT 8, INT 4,LONG 2, FLOAT 4, DOUBLE 0

the compile part is too long for this issue ticket...

conversy commented 10 years ago

here is the kernel compile part (part1):

gdb ./App_Bullet3_OpenCL_Demos_Apple_gmake_debug GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x8664-apple-darwin"...No symbol table is loaded. Use the "file" command. Breakpoint 1 (ptrace if ((unsigned int_)($esp+4)) == 0x1f) pending. Reading symbols for shared libraries ........... done

(gdb) r Starting program: /Users/conversy/recherche/wingLift/code/bullet3/bin/App_Bullet3_OpenCL_Demos_Apple_gmakedebug Reading symbols for shared libraries ++++++++++...................................................................................................................................... done Breakpoint 1 at 0x9188eabc Pending breakpoint 1 - "ptrace if ((unsigned int_)($esp+4)) == 0x1f" resolved Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries .. done Reading symbols for shared libraries ... done Reading symbols for shared libraries .. done Reading symbols for shared libraries .......... done main startVendor: ATI Technologies Inc. Renderer: AMD Radeon HD 6750M OpenGL Engine Version: 3.2 ATI-1.8.19 GLSL: 1.50

Reading symbols for shared libraries . done

started GwenUserInterfaceinit fontscompiling kernel copyTransformsToVBOKernel b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log:

:3:418: warning: double precision constant requires cl_khr_fp64, casting to single precision typedef struct { float4 m_pos; float4 m_quat; float4 m_linVel; float4 m_angVel; unsigned int m_collidableIdx; float m_invMass; float m_restituitionCoeff; float m_frictionCoeff; } Body; __kernel void copyTransformsToVBOKernel( __global Body\* gBodies, __global float4\* posOrnColor, const int numNodes) { int nodeID = get_global_id(0); if( nodeID < numNodes ) { posOrnColor[nodeID] = (float4) (gBodies[nodeID].m_pos.xyz,1.0); posOrnColor[nodeID + numNodes] = gBodies[nodeID].m_quat; } } ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/sat.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :49:5: warning: no previous prototype for function 'getTriangleIndex' int getTriangleIndex(const b3QuantizedBvhNode\* rootNode) ^ :56:5: warning: no previous prototype for function 'getTriangleIndexGlobal' int getTriangleIndexGlobal(__global const b3QuantizedBvhNode\* rootNode) ^ :63:5: warning: no previous prototype for function 'isLeafNode' int isLeafNode(const b3QuantizedBvhNode\* rootNode) ^ :68:5: warning: no previous prototype for function 'isLeafNodeGlobal' int isLeafNodeGlobal(__global const b3QuantizedBvhNode\* rootNode) ^ :74:5: warning: no previous prototype for function 'getEscapeIndex' int getEscapeIndex(const b3QuantizedBvhNode\* rootNode) ^ :78:5: warning: no previous prototype for function 'getEscapeIndexGlobal' int getEscapeIndexGlobal(__global const b3QuantizedBvhNode\* rootNode) ^ :168:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :174:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :184:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :184:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :184:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :459:9: warning: 'make_float4' macro redefined #define make_float4 (float4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3140:9: note: previous definition is here #define make_float4(A,B,C,D) (float4)((A),(B),(C),(D)) ^ :618:6: warning: no previous prototype for function 'findSeparatingAxisLocalA' bool findSeparatingAxisLocalA( const ConvexPolyhedronCL\* hullA, __global const ConvexPolyhedronCL\* hullB, ^ :636:6: warning: unused variable 'i' int i = get_global_id(0); ^ :668:6: warning: no previous prototype for function 'findSeparatingAxisLocalB' bool findSeparatingAxisLocalB( __global const ConvexPolyhedronCL\* hullA, const ConvexPolyhedronCL\* hullB, ^ :685:6: warning: unused variable 'i' int i = get_global_id(0); ^ :717:6: warning: no previous prototype for function 'findSeparatingAxisEdgeEdgeLocalA' bool findSeparatingAxisEdgeEdgeLocalA( const ConvexPolyhedronCL\* hullA, __global const ConvexPolyhedronCL\* hullB, ^ :734:6: warning: unused variable 'i' int i = get_global_id(0); ^ :739:6: warning: unused variable 'curPlaneTests' int curPlaneTests=0; ^ :805:6: warning: no previous prototype for function 'findSeparatingAxis' bool findSeparatingAxis( __global const ConvexPolyhedronCL\* hullA, __global const ConvexPolyhedronCL\* hullB, ^ :818:6: warning: unused variable 'i' int i = get_global_id(0); ^ :856:6: warning: no previous prototype for function 'findSeparatingAxisEdgeEdge' bool findSeparatingAxisEdgeEdge( __global const ConvexPolyhedronCL\* hullA, __global const ConvexPolyhedronCL\* hullB, ^ :869:6: warning: unused variable 'i' int i = get_global_id(0); ^ :874:6: warning: unused variable 'curPlaneTests' int curPlaneTests=0; ^ :1000:7: warning: unused variable 'numFacesA' int numFacesA = convexShapes[shapeIndexA].m_numFaces; ^ :1131:11: warning: unused variable 'endNodeIndexA' int endNodeIndexA = startNodeIndexA+subtreeA.m_subtreeSize; ^ :1133:11: warning: unused variable 'endNodeIndexB' int endNodeIndexB = startNodeIndexB+subtreeB.m_subtreeSize; ^ :1274:13: warning: unused variable 'numFacesA' int numFacesA = convexShapes[shapeIndexA].m_numFaces; ^ :1275:15: warning: unused variable 'dmin' float dmin = FLT_MAX; ^ :1286:22: warning: unused variable 'DeltaC2' const float4 DeltaC2 = c0 - c1; ^ :1301:12: warning: unused variable 'numFacesA' int numFacesA = convexShapes[shapeIndexA].m_numFaces; ^ :1302:14: warning: unused variable 'dmin' float dmin = FLT_MAX; ^ :1313:21: warning: unused variable 'DeltaC2' const float4 DeltaC2 = c0 - c1; ^ :1344:11: warning: unused variable 'numFacesA' int numFacesA = convexShapes[shapeIndexA].m_numFaces; ^ :1345:13: warning: unused variable 'dmin' float dmin = FLT_MAX; ^ :1356:20: warning: unused variable 'DeltaC2' const float4 DeltaC2 = c0 - c1; ^ :1419:7: warning: unused variable 'numFacesA' int numFacesA = convexShapes[shapeIndexA].m_numFaces; ^ :1584:10: warning: unused variable 'c1' float c1 = -face.m_plane.w; ^ :1543:7: warning: unused variable 'localCC' int localCC=0; ^ :1504:6: warning: unused variable 'numFacesA' int numFacesA = convexShapes[shapeIndexA].m_numFaces; ^ :1517:9: warning: unused variable 'triMinAabb' float4 triMinAabb, triMaxAabb; ^ :1517:21: warning: unused variable 'triMaxAabb' float4 triMinAabb, triMaxAabb; ^ :182:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :209:15: warning: unused function 'b3FastNormalize4' inline float4 b3FastNormalize4(float4 v) ^ :228:15: warning: unused function 'b3QuatNormalized' inline b3Quat b3QuatNormalized(b3QuatConstArg in) ^ :257:15: warning: unused function 'b3QuatInvRotate' inline float4 b3QuatInvRotate(b3QuatConstArg q, b3QuatConstArg vec) ^ :315:10: warning: unused function 'mtZero' b3Mat3x3 mtZero() ^ :324:10: warning: unused function 'mtIdentity' b3Mat3x3 mtIdentity() ^ :342:10: warning: unused function 'mtMul' b3Mat3x3 mtMul(b3Mat3x3 a, b3Mat3x3 b) ^ :362:10: warning: unused function 'mtMul1' b3Float4 mtMul1(b3Mat3x3 a, b3Float4 b) ^ :372:10: warning: unused function 'mtMul3' b3Float4 mtMul3(b3Float4 a, b3Mat3x3 b) ^ :510:12: warning: unused function 'qtNormalize' Quaternion qtNormalize(Quaternion in) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel findSeparatingAxisKernel ready. compiling kernel findConcaveSeparatingAxisKernel ready. compiling kernel findCompoundPairsKernel ready. compiling kernel processCompoundPairsKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/satClipHullContacts.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :4:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring #pragma OPENCL EXTENSION cl_amd_printf : enable ^ :54:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :60:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :70:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :70:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :70:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :425:9: warning: 'make_float4' macro redefined #define make_float4 (float4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3140:9: note: previous definition is here #define make_float4(A,B,C,D) (float4)((A),(B),(C),(D)) ^ :426:9: warning: 'make_float2' macro redefined #define make_float2 (float2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3137:9: note: previous definition is here #define make_float2(A,B) (float2)((A),(B)) ^ :427:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :428:9: warning: 'make_int4' macro redefined #define make_int4 (int4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3115:9: note: previous definition is here #define make_int4(A,B,C,D) (int4)((A),(B),(C),(D)) ^ :429:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :430:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ :527:5: warning: no previous prototype for function 'clipFaceGlobal' int clipFaceGlobal(__global const float4\* pVtxIn, int numVertsIn, float4 planeNormalWS,float planeEqWS, __global float4\* ppVtxOut) ^ :574:5: warning: no previous prototype for function 'clipFace' int clipFace(const float4\* pVtxIn, int numVertsIn, float4 planeNormalWS,float planeEqWS, float4\* ppVtxOut) ^ :618:5: warning: no previous prototype for function 'clipFaceAgainstHull' int clipFaceAgainstHull(const float4 separatingNormal, __global const b3ConvexPolyhedronData_t\* hullA, ^ :707:5: warning: no previous prototype for function 'clipFaceAgainstHullLocalA' int clipFaceAgainstHullLocalA(const float4 separatingNormal, const b3ConvexPolyhedronData_t\* hullA, ^ :799:5: warning: no previous prototype for function 'clipHullAgainstHull' int clipHullAgainstHull(const float4 separatingNormal, ^ :847:5: warning: no previous prototype for function 'clipHullAgainstHullLocalA' int clipHullAgainstHullLocalA(const float4 separatingNormal, ^ :903:5: warning: no previous prototype for function 'extractManifoldSequentialGlobal' int extractManifoldSequentialGlobal(__global const float4\* p, int nPoints, float4 nearNormal, int4\* contactIdx) ^ :995:5: warning: no previous prototype for function 'extractManifoldSequentialGlobalFake' int extractManifoldSequentialGlobalFake(__global const float4\* p, int nPoints, float4 nearNormal, int\* contactIdx) ^ :1008:5: warning: no previous prototype for function 'extractManifoldSequential' int extractManifoldSequential(const float4\* p, int nPoints, float4 nearNormal, int\* contactIdx) ^ :1135:6: warning: no previous prototype for function 'trInverse' void trInverse(float4 translationIn, Quaternion orientationIn, ^ :1141:6: warning: no previous prototype for function 'trMul' void trMul(float4 translationA, Quaternion orientationA, ^ :1395:15: warning: double precision constant requires cl_khr_fp64, casting to single precision if (len > 0.00001) ^ :1526:10: warning: unused variable 'c1' float c1 = -face.m_plane.w; ^ :1598:15: warning: incompatible pointer types passing '__float4 (_)[3]' to parameter of type 'const __float4 *' &verticesA,&facesA,&indicesA, ^~~~~~~~~~ :852:16: note: passing argument to parameter 'verticesA' here const float4_ verticesA, ^ :1598:26: warning: incompatible pointer types passing 'b3GpuFace_t (_)[5]' to parameter of type 'const b3GpuFace_t *' (aka 'const struct b3GpuFace *') &verticesA,&facesA,&indicesA, ^~~~~~~ :853:21: note: passing argument to parameter 'facesA' here const b3GpuFace_t_ facesA, ^ :1598:34: warning: incompatible pointer types passing 'int (_)[12]' to parameter of type 'const int *' &verticesA,&facesA,&indicesA, ^~~~~~~~~ :854:13: note: passing argument to parameter 'indicesA' here const int_ indicesA, ^ :1468:8: warning: unused variable 'overlap' bool overlap = false; ^ :1485:9: warning: unused variable 'dmin' float dmin = FLT_MAX; ^ :1486:7: warning: unused variable 'localCC' int localCC=0; ^ :1639:5: warning: no previous prototype for function 'findClippingFaces' int findClippingFaces(const float4 separatingNormal, ^ :1721:5: warning: no previous prototype for function 'clipFaces' int clipFaces(__global float4\* worldVertsA1, ^ :1733:9: warning: unused variable 'closestFaceB' int closestFaceB = clippingFaces[pairIndex].y; ^ :1846:8: warning: unused variable 'numLocalContactsOut' int numLocalContactsOut = findClippingFaces(separatingNormals[i], ^ :1823:6: warning: unused variable 'pairIndex' int pairIndex = i; ^ :1905:21: warning: unused variable 'closestFaceB' int closestFaceB = clippingFaces[pairIndex].y; ^ :1891:8: warning: unused variable 'bodyIndexA' int bodyIndexA = pairs[i].x; ^ :1892:8: warning: unused variable 'bodyIndexB' int bodyIndexB = pairs[i].y; ^ :68:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :92:12: warning: unused function 'b3Contact4Data_getNumPoints' inline int b3Contact4Data_getNumPoints(const struct b3Contact4Data\* contact) ^ :96:13: warning: unused function 'b3Contact4Data_setNumPoints' inline void b3Contact4Data_setNumPoints(struct b3Contact4Data\* contact, int numPoints) ^ :126:15: warning: unused function 'b3FastNormalize4' inline float4 b3FastNormalize4(float4 v) ^ :145:15: warning: unused function 'b3QuatNormalized' inline b3Quat b3QuatNormalized(b3QuatConstArg in) ^ :174:15: warning: unused function 'b3QuatInvRotate' inline float4 b3QuatInvRotate(b3QuatConstArg q, b3QuatConstArg vec) ^ :178:17: warning: unused function 'b3TransformPoint' inline b3Float4 b3TransformPoint(b3Float4ConstArg point, b3Float4ConstArg translation, b3QuatConstArg orientation) ^ :294:17: warning: unused function 'b3QuatGetRotationMatrix' inline b3Mat3x3 b3QuatGetRotationMatrix(b3Quat quat) ^ :312:17: warning: unused function 'b3AbsoluteMat3x3' inline b3Mat3x3 b3AbsoluteMat3x3(b3Mat3x3ConstArg matIn) ^ :333:10: warning: unused function 'mtZero' b3Mat3x3 mtZero() ^ :342:10: warning: unused function 'mtIdentity' b3Mat3x3 mtIdentity() ^ :360:10: warning: unused function 'mtMul' b3Mat3x3 mtMul(b3Mat3x3 a, b3Mat3x3 b) ^ :380:10: warning: unused function 'mtMul1' b3Float4 mtMul1(b3Mat3x3 a, b3Float4 b) ^ :390:10: warning: unused function 'mtMul3' b3Float4 mtMul3(b3Float4 a, b3Mat3x3 b) ^ :432:7: warning: unused function 'fastDiv' float fastDiv(float numerator, float denominator) ^ :438:8: warning: unused function 'fastDiv4' float4 fastDiv4(float4 numerator, float4 denominator) ^ :483:12: warning: unused function 'qtNormalize' Quaternion qtNormalize(Quaternion in) ^ :504:8: warning: unused function 'qtInvRotate' float4 qtInvRotate(const Quaternion q, float4 vec) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel clipHullHullKernel ready. compiling kernel clipCompoundsHullHullKernel ready. compiling kernel findClippingFacesKernel ready. compiling kernel clipFacesAndFindContactsKernel ready. compiling kernel clipHullHullConcaveConvexKernel ready. compiling kernel extractManifoldAndAddContactKernel ready. compiling kernel newContactReductionKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/bvhTraversal.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :58:5: warning: no previous prototype for function 'getTriangleIndex' int getTriangleIndex(const btQuantizedBvhNode\* rootNode) ^ :65:5: warning: no previous prototype for function 'isLeaf' int isLeaf(const btQuantizedBvhNode\* rootNode) ^ :71:5: warning: no previous prototype for function 'getEscapeIndex' int getEscapeIndex(const btQuantizedBvhNode\* rootNode) ^ :130:5: warning: no previous prototype for function 'testQuantizedAabbAgainstQuantizedAabb' int testQuantizedAabbAgainstQuantizedAabb( ^ :155:6: warning: no previous prototype for function 'quantizeWithClamp' void quantizeWithClamp(unsigned short\* out, float4 point2,int isMax, float4 bvhAabbMin, float4 bvhAabbMax, float4 bvhQuantization) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel bvhTraversalKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/primitiveContacts.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :27:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :33:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :43:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :43:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :43:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :79:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring #pragma OPENCL EXTENSION cl_amd_printf : enable ^ :174:9: warning: 'make_float4' macro redefined #define make_float4 (float4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3140:9: note: previous definition is here #define make_float4(A,B,C,D) (float4)((A),(B),(C),(D)) ^ :175:9: warning: 'make_float2' macro redefined #define make_float2 (float2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3137:9: note: previous definition is here #define make_float2(A,B) (float2)((A),(B)) ^ :176:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :177:9: warning: 'make_int4' macro redefined #define make_int4 (int4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3115:9: note: previous definition is here #define make_int4(A,B,C,D) (int4)((A),(B),(C),(D)) ^ :178:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :179:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ :262:6: warning: no previous prototype for function 'trInverse' void trInverse(float4 translationIn, Quaternion orientationIn, ^ :268:6: warning: no previous prototype for function 'trMul' void trMul(float4 translationA, Quaternion orientationA, ^ :288:7: warning: no previous prototype for function 'signedDistanceFromPointToPlane' float signedDistanceFromPointToPlane(float4 point, float4 planeEqn, float4\* closestPointOnFace) ^ :314:25: warning: comparison of integers of different signs: 'unsigned int' and 'const int' for(unsigned i=0; i != face->m_numIndices; ++i) ~ ^ ~~~~~~~~~~~~~~~~~~ :346:6: warning: no previous prototype for function 'computeContactSphereConvex' void computeContactSphereConvex(int pairIndex, ^ :398:11: warning: unused variable 'zeroPos' float4 zeroPos = make_float4(0,0,0,0); ^ :477:5: warning: no previous prototype for function 'extractManifoldSequential' int extractManifoldSequential(const float4\* p, int nPoints, float4 nearNormal, int4\* contactIdx) ^ :570:5: warning: no previous prototype for function 'computeContactPlaneConvex' int computeContactPlaneConvex(int pairIndex, ^ :619:18: warning: double precision constant requires cl_khr_fp64, casting to single precision float maxDot = -1e30; ^ :594:6: warning: unused variable 'numContactsOut' int numContactsOut = 0; ^ :595:6: warning: unused variable 'numWorldVertsB1' int numWorldVertsB1= 0; ^ :696:6: warning: no previous prototype for function 'computeContactPlaneSphere' void computeContactPlaneSphere(int pairIndex, ^ :882:15: warning: double precision constant requires cl_khr_fp64, casting to single precision if (len > 0.00001) ^ :778:8: warning: unused variable 'minDist' float minDist = -1e30f; ^ :772:9: warning: unused variable 'worldVertsB1' float4 worldVertsB1[64]; ^ :775:9: warning: unused variable 'localContactsOut' float4 localContactsOut[64]; ^ :779:8: warning: unused variable 'maxDist' float maxDist = 0.02f; ^ :773:9: warning: unused variable 'worldVertsB2' float4 worldVertsB2[64]; ^ :776:6: warning: unused variable 'localContactCapacity' int localContactCapacity=64; ^ :774:6: warning: unused variable 'capacityWorldVerts' int capacityWorldVerts = 64; ^ :973:7: warning: unused variable 'shapeIndexA' int shapeIndexA = collidables[collidableIndexA].m_shapeIndex; ^ :974:7: warning: unused variable 'shapeIndexB' int shapeIndexB = collidables[collidableIndexB].m_shapeIndex; ^ :1021:6: warning: no previous prototype for function 'pointInTriangle' bool pointInTriangle(const float4\* vertices, const float4\* normal, float4 _p ) ^ :1049:7: warning: no previous prototype for function 'segmentSqrDistance' float segmentSqrDistance(float4 from, float4 to,float4 p, float4_ nearest) ^ :1074:6: warning: no previous prototype for function 'computeContactSphereTriangle' void computeContactSphereTriangle(int pairIndex, ^ :1094:6: warning: unused variable 'numFaces' int numFaces = 3; ^ :1225:6: warning: unused variable 'pairIdx' int pairIdx = i; ^ :1231:6: warning: unused variable 'shapeIndexB' int shapeIndexB = collidables[collidableIndexB].m_shapeIndex; ^ :41:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :65:12: warning: unused function 'b3Contact4Data_getNumPoints' inline int b3Contact4Data_getNumPoints(const struct b3Contact4Data\* contact) ^ :69:13: warning: unused function 'b3Contact4Data_setNumPoints' inline void b3Contact4Data_setNumPoints(struct b3Contact4Data\* contact, int numPoints) ^ :181:7: warning: unused function 'fastDiv' float fastDiv(float numerator, float denominator) ^ :187:8: warning: unused function 'fastDiv4' float4 fastDiv4(float4 numerator, float4 denominator) ^ :232:12: warning: unused function 'qtNormalize' Quaternion qtNormalize(Quaternion in) ^ :253:8: warning: unused function 'qtInvRotate' float4 qtInvRotate(const Quaternion q, float4 vec) ^ :281:17: warning: unused function 'lerp3' __inline float4 lerp3(const float4 a,const float4 b, float t) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel primitiveContactsKernel ready. compiling kernel findConcaveSphereContactsKernel ready. compiling kernel processCompoundPairsPrimitivesKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/sap.cl.ATI Radeon HD 6750M.1.0.bin b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/sapFast.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :113:30: warning: comparison of integers of different signs: 'int' and 'unsigned int' for (int j=prevMinIndex;j!=curMinIndex;j+=stepMin) ~^ ~~~~~~~~~~~ :206:30: warning: comparison of integers of different signs: 'int' and 'unsigned int' for (int j=prevMaxIndex;j!=curMaxIndex;j+=stepMax) ~^ ~~~~~~~~~~~ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel computePairsKernelTwoArrays ready. compiling kernel prepareSumVarianceKernel ready. compiling kernel computePairsIncremental3dSapKernel ready. compiling kernel computePairsKernelLocalSharedMemory ready. compiling kernel flipFloatKernel ready. compiling kernel copyAabbsKernel ready. compiling kernel scatterKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/PrefixScanKernels.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :34:5: warning: no previous prototype for function 'ScanExclusive' u32 ScanExclusive(__local u32\* data, u32 n, int lIdx, int lSize) ^ :56:31: warning: comparison of integers of different signs: 'int' and 'u32' (aka 'unsigned int') for(int nActive=1; nActive>=1 ) ~~~~~~~^~ :79:33: warning: comparison of integers of different signs: 'int' and 'unsigned int' ldsData[2_lIdx] = ( 2_gIdx < cb.m_numElems )? src[2*gIdx]: 0; ~~~~~~ ^ ~~~~~~~~~~~~~ :80:35: warning: comparison of integers of different signs: 'int' and 'unsigned int' ldsData[2_lIdx + 1] = ( 2_gIdx+1 < cb.m_numElems )? src[2_gIdx + 1]: 0; ~~~~~~~~ ^ ~~~~~~~~~~~~~ :83:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' if( (2_gIdx) < cb.m_numElems ) ~~~~~~ ^ ~~~~~~~~~~~~~ :87:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' if( (2*gIdx + 1) < cb.m_numElems ) ~~~~~~~~~~ ^ ~~~~~~~~~~~~~ :114:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' for(int i=lIdx; i:116:18: warning: comparison of integers of different signs: 'int' and 'unsigned int' ldsData[i] = (i:120:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' for(int i=lIdx; i:15:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring #pragma OPENCL EXTENSION cl_amd_printf : enable ^ :26:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :27:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :28:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel FillIntKernel ready. compiling kernel FillUnsignedIntKernel ready. compiling kernel FillFloatKernel ready. compiling kernel FillInt2Kernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/RadixSort32Kernels.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :30:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :31:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :32:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ :64:6: warning: no previous prototype for function 'prefixScanVectorEx' uint prefixScanVectorEx( uint4\* data ) ^ :81:5: warning: no previous prototype for function 'localPrefixSum' u32 localPrefixSum( u32 pData, uint lIdx, uint\* totalSum, **local u32\* sorterSharedMemory, int wgSize /_64 or 128_/ ) ^ :148:7: warning: no previous prototype for function 'localPrefixSum128V' uint4 localPrefixSum128V( uint4 pData, uint lIdx, uint\* totalSum, __local u32\* sorterSharedMemory ) ^ :155:7: warning: no previous prototype for function 'localPrefixSum64V' uint4 localPrefixSum64V( uint4 pData, uint lIdx, uint\* totalSum, __local u32\* sorterSharedMemory ) ^ :161:5: warning: no previous prototype for function 'unpack4Key' u32 unpack4Key( u32 key, int keyIdx ){ return (key>>(keyIdx_8)) & 0xff;} ^ :162:5: warning: no previous prototype for function 'bit8Scan' u32 bit8Scan(u32 v) ^ :215:17: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') for(int i=0; i:173:6: warning: unused variable 'gIdx' u32 gIdx = GET_GLOBAL_IDX; ^ :176:6: warning: unused variable 'wgSize' u32 wgSize = GET_GROUP_SIZE; ^ :269:17: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') for(int i=0; i:227:6: warning: unused variable 'gIdx' u32 gIdx = GET_GLOBAL_IDX; ^ :230:6: warning: unused variable 'wgSize' u32 wgSize = GET_GROUP_SIZE; ^ :290:23: warning: comparison of integers of different signs: 'unsigned int' and 'int' if( (nPerWI_lIdx+i) < NUM_BUCKET_nWGs ) ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ :284:6: warning: unused variable 'wgIdx' u32 wgIdx = GET_GROUP_IDX; ^ :355:6: warning: no previous prototype for function 'sort4Bits' void sort4Bits(u32 sortData[4], int startBit, int lIdx, __local u32_ ldsSortData) ^ :383:6: warning: no previous prototype for function 'sort4Bits1' void sort4Bits1(u32 sortData[4], int startBit, int lIdx, __local u32\* ldsSortData) ^ :467:6: warning: unused variable 'gIdx' u32 gIdx = GET_GLOBAL_IDX; ^ :470:6: warning: unused variable 'wgSize' u32 wgSize = GET_GROUP_SIZE; ^ :585:6: warning: no previous prototype for function 'sort4Bits1KeyValue' void sort4Bits1KeyValue(u32 sortData[4], int sortVal[4], int startBit, int lIdx, __local u32\* ldsSortData, __local int _ldsSortVal) ^ :711:22: warning: passing 'int [4]' to parameter of type 'u32 *' (aka 'unsigned int *') converts between pointers to integer types with different sign sort4Bits1KeyValue(sortData, sortVal, startBit, lIdx, ldsSortData, ldsSortVal); ^~~~~~~~ :585:29: note: passing argument to parameter 'sortData' here void sort4Bits1KeyValue(u32 sortData[4], int sortVal[4], int startBit, int lIdx, __local u32_ ldsSortData, __local int *ldsSortVal) ^ :711:57: warning: passing '__attribute**((address_space(3))) int [272]' to parameter of type '**attribute**((address_space(3))) u32 _' (aka '**attribute**((address_space(3))) unsigned int *') converts between pointers to integer types with different sign sort4Bits1KeyValue(sortData, sortVal, startBit, lIdx, ldsSortData, ldsSortVal); ^~~~~~~~~~~ :585:95: note: passing argument to parameter 'ldsSortData' here void sort4Bits1KeyValue(u32 sortData[4], int sortVal[4], int startBit, int lIdx, __local u32_ ldsSortData, __local int *ldsSortVal) ^ :677:6: warning: unused variable 'gIdx' u32 gIdx = GET_GLOBAL_IDX; ^ :680:6: warning: unused variable 'wgSize' u32 wgSize = GET_GROUP_SIZE; ^ :827:6: warning: unused variable 'gIdx' u32 gIdx = GET_GLOBAL_IDX; ^ :830:6: warning: unused variable 'wgSize' u32 wgSize = GET_GROUP_SIZE; ^ :871:6: warning: unused variable 'gIdx' u32 gIdx = GET_GLOBAL_IDX; ^ :874:6: warning: unused variable 'wgSize' u32 wgSize = GET_GROUP_SIZE; ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel StreamCountSortDataKernel ready. compiling kernel StreamCountKernel ready. compiling kernel SortAndScatterSortDataKernel ready. compiling kernel SortAndScatterKernel ready. compiling kernel PrefixScanKernel ready. clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel LocalScanKernel ready. compiling kernel TopLevelScanKernel ready. compiling kernel AddOffsetKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/jointSolver.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :206:6: warning: no previous prototype for function 'resolveSingleConstraintRowGeneric' void resolveSingleConstraintRowGeneric(__global b3GpuSolverBody\* body1, __global b3GpuSolverBody\* body2, __global b3SolverConstraint\* c) ^ :382:6: warning: no previous prototype for function 'getSkewSymmetricMatrix' void getSkewSymmetricMatrix(float4 vecIn, __global float4\* v0,__global float4\* v1,__global float4\* v2) ^ :384:17: warning: double precision constant requires cl_khr_fp64, casting to single precision _v0 = (float4)(0. ,-vecIn.z ,vecIn.y,0.f); ^ :385:26: warning: double precision constant requires cl_khr_fp64, casting to single precision *v1 = (float4)(vecIn.z ,0. ,-vecIn.x,0.f); ^ :388:6: warning: no previous prototype for function 'getInfo2Point2Point' void getInfo2Point2Point(__global b3GpuGenericConstraint_ constraint,b3GpuConstraintInfo2\* info,__global b3RigidBodyCL\* bodies) ^ :431:9: warning: incompatible pointer types initializing 'float _' with an expression of type '__float4 *' float_ resultPtr = &result; ^ ~~~~~~~ :437:12: warning: no previous prototype for function 'nearest' Quaternion nearest( Quaternion first, Quaternion qd) ^ :447:7: warning: no previous prototype for function 'b3Acos' float b3Acos(float x) ^ :455:7: warning: no previous prototype for function 'getAngle' float getAngle(Quaternion orn) ^ :462:6: warning: no previous prototype for function 'calculateDiffAxisAngleQuaternion' void calculateDiffAxisAngleQuaternion( Quaternion orn0,Quaternion orn1a,float4\* axis,float\* angle) ^ :477:6: warning: no previous prototype for function 'getInfo2FixedOrientation' void getInfo2FixedOrientation(__global b3GpuGenericConstraint\* constraint,b3GpuConstraintInfo2\* info,__global b3RigidBodyCL\* bodies, int start_row) ^ :503:9: warning: incompatible pointer types initializing 'float _' with an expression of type '__float4 *' float_ resultPtr = &diff; ^ ~~~~~ :621:7: warning: unused variable 'rowskip' int rowskip = sizeof(b3SolverConstraint)/sizeof(float);//check this ^ :181:12: warning: unused function 'qtNormalize' Quaternion qtNormalize(Quaternion in) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel solveJointConstraintRows ready. compiling kernel initSolverBodies ready. compiling kernel getInfo1Kernel ready. compiling kernel initBatchConstraintsKernel ready. compiling kernel getInfo2Kernel ready. compiling kernel writeBackVelocitiesKernel ready. compiling kernel breakViolatedConstraintsKernel ready. clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel LocalScanKernel ready. compiling kernel TopLevelScanKernel ready. compiling kernel AddOffsetKernel ready. clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel FillIntKernel ready. compiling kernel FillUnsignedIntKernel ready. compiling kernel FillFloatKernel ready. compiling kernel FillInt2Kernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/solverUtils.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :39:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :45:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :55:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :86:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring #pragma OPENCL EXTENSION cl_amd_printf : enable ^ :113:9: warning: 'make_float4' macro redefined #define make_float4 (float4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3140:9: note: previous definition is here #define make_float4(A,B,C,D) (float4)((A),(B),(C),(D)) ^ :114:9: warning: 'make_float2' macro redefined #define make_float2 (float2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3137:9: note: previous definition is here #define make_float2(A,B) (float2)((A),(B)) ^ :115:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :116:9: warning: 'make_int4' macro redefined #define make_int4 (int4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3115:9: note: previous definition is here #define make_int4(A,B,C,D) (int4)((A),(B),(C),(D)) ^ :117:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :118:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ :448:6: warning: no previous prototype for function 'setLinearAndAngular' void setLinearAndAngular( float4 n, float4 r0, float4 r1, float4\* linear, float4\* angular0, float4\* angular1) ^ :454:7: warning: no previous prototype for function 'calcRelVel' float calcRelVel( float4 l0, float4 l1, float4 a0, float4 a1, float4 linVel0, float4 angVel0, float4 linVel1, float4 angVel1 ) ^ :458:7: warning: no previous prototype for function 'calcJacCoeff' float calcJacCoeff(const float4 linear0, const float4 linear1, const float4 angular0, const float4 angular1, ^ :496:6: warning: no previous prototype for function 'solveContact' void solveContact(**global Constraint4\* cs, ^ :543:6: warning: no previous prototype for function 'solveContactConstraint' void solveContactConstraint(__global Body\* gBodies, __global Shape\* gShapes, __global Constraint4\* ldsCs, ^ :607:6: warning: no previous prototype for function 'solveFrictionConstraint' void solveFrictionConstraint(__global Body\* gBodies, __global Shape\* gShapes, __global Constraint4\* ldsCs, ^ :765:6: warning: no previous prototype for function 'setConstraint4' void setConstraint4( const float4 posA, const float4 linVelA, const float4 angVelA, float invMassA, const Matrix3x3 invInertiaA, ^ :869:4: warning: passing 'const __attribute**((address_space(1))) struct b3Contact4Data _' to parameter of type '**attribute**((address_space(1))) struct b3Contact4Data *' discards qualifiers &gContact[gIdx], dt, positionDrift, positionConstraintCoeff,countA,countB, ^~~~~~~~~~~~~~~ :767:34: note: passing argument to parameter 'src' here __global struct b3Contact4Data_ src, float dt, float positionDrift, float positionConstraintCoeff,float countA, float countB, ^ :53:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :77:12: warning: unused function 'b3Contact4Data_getNumPoints' inline int b3Contact4Data_getNumPoints(const struct b3Contact4Data\* contact) ^ :81:13: warning: unused function 'b3Contact4Data_setNumPoints' inline void b3Contact4Data_setNumPoints(struct b3Contact4Data\* contact, int numPoints) ^ :125:7: warning: unused function 'fastDiv' float fastDiv(float numerator, float denominator) ^ :131:8: warning: unused function 'fastDiv4' float4 fastDiv4(float4 numerator, float4 denominator) ^ :136:7: warning: unused function 'fastSqrtf' float fastSqrtf(float f2) ^ :142:7: warning: unused function 'fastRSqrt' float fastRSqrt(float f2) ^ :147:7: warning: unused function 'fastLength4' float fastLength4(float4 v) ^ :179:7: warning: unused function 'length3' float length3(const float4 a) ^ :190:7: warning: unused function 'dot3w1' float dot3w1(const float4 point, const float4 eqn) ^ :203:8: warning: unused function 'normalize4' float4 normalize4(const float4 a) ^ :209:8: warning: unused function 'createEquation' float4 createEquation(const float4 a, const float4 b, const float4 c) ^ :238:11: warning: unused function 'mtZero' Matrix3x3 mtZero() ^ :247:11: warning: unused function 'mtIdentity' Matrix3x3 mtIdentity() ^ :265:11: warning: unused function 'mtMul' Matrix3x3 mtMul(Matrix3x3 a, Matrix3x3 b) ^ :329:12: warning: unused function 'qtNormalize' Quaternion qtNormalize(Quaternion in) ^ :350:8: warning: unused function 'qtInvRotate' float4 qtInvRotate(const Quaternion q, float4 vec) ^
conversy commented 10 years ago

and part 2:

b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel CountBodiesKernel ready. compiling kernel ContactToConstraintSplitKernel ready. compiling kernel ClearVelocitiesKernel ready. compiling kernel AverageVelocitiesKernel ready. compiling kernel UpdateBodyVelocitiesKernel ready. compiling kernel SolveContactJacobiKernel ready. compiling kernel SolveFrictionJacobiKernel ready. clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel LocalScanKernel ready. compiling kernel TopLevelScanKernel ready. compiling kernel AddOffsetKernel ready. clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel FillIntKernel ready. compiling kernel FillUnsignedIntKernel ready. compiling kernel FillFloatKernel ready. compiling kernel FillInt2Kernel ready. clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel StreamCountSortDataKernel ready. compiling kernel StreamCountKernel ready. compiling kernel SortAndScatterSortDataKernel ready. compiling kernel SortAndScatterKernel ready. compiling kernel PrefixScanKernel ready. clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel LocalScanKernel ready. compiling kernel TopLevelScanKernel ready. compiling kernel AddOffsetKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/BoundSearchKernels.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log:

:38:11: warning: comparison of integers of different signs: 'int' and 'unsigned int' if( gIdx < nSrc ) ~~~~ ^ ~~~~ :43:25: warning: comparison of integers of different signs: 'int' and 'unsigned int' SortData jData = (gIdx==nSrc)? end: src[gIdx]; ~~~~^ ~~~~ :60:11: warning: comparison of integers of different signs: 'int' and 'unsigned int' if( gIdx < nSrc+1 ) ~~~~ ^ ~~~~~~ :65:25: warning: comparison of integers of different signs: 'int' and 'unsigned int' SortData jData = (gIdx==nSrc)? end: src[gIdx]; ~~~~^ ~~~~ :82:11: warning: comparison of integers of different signs: 'int' and 'unsigned int' if( gIdx < nDst ) ~~~~ ^ ~~~~ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel SearchSortDataLowerKernel ready. compiling kernel SearchSortDataUpperKernel ready. compiling kernel SubtractKernel ready. clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel FillIntKernel ready. compiling kernel FillUnsignedIntKernel ready. compiling kernel FillFloatKernel ready. compiling kernel FillInt2Kernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/solveContact.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :98:8: warning: unused function 'normalize3' float4 normalize3(const float4 a) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/solveFriction.cl.ATI Radeon HD 6750M.1.0.bin b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/solverSetup2.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :39:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :45:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :55:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :86:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring #pragma OPENCL EXTENSION cl_amd_printf : enable ^ :113:9: warning: 'make_float4' macro redefined #define make_float4 (float4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3140:9: note: previous definition is here #define make_float4(A,B,C,D) (float4)((A),(B),(C),(D)) ^ :114:9: warning: 'make_float2' macro redefined #define make_float2 (float2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3137:9: note: previous definition is here #define make_float2(A,B) (float2)((A),(B)) ^ :115:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :116:9: warning: 'make_int4' macro redefined #define make_int4 (int4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3115:9: note: previous definition is here #define make_int4(A,B,C,D) (int4)((A),(B),(C),(D)) ^ :117:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :118:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ :520:8: warning: unused variable 'bStatic' bool bStatic = (bPtrAndSignBit<0) ||(bPtrAndSignBit==staticIdx); ^ :53:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :77:12: warning: unused function 'b3Contact4Data_getNumPoints' inline int b3Contact4Data_getNumPoints(const struct b3Contact4Data\* contact) ^ :81:13: warning: unused function 'b3Contact4Data_setNumPoints' inline void b3Contact4Data_setNumPoints(struct b3Contact4Data\* contact, int numPoints) ^ :125:7: warning: unused function 'fastDiv' float fastDiv(float numerator, float denominator) ^ :131:8: warning: unused function 'fastDiv4' float4 fastDiv4(float4 numerator, float4 denominator) ^ :136:7: warning: unused function 'fastSqrtf' float fastSqrtf(float f2) ^ :142:7: warning: unused function 'fastRSqrt' float fastRSqrt(float f2) ^ :147:7: warning: unused function 'fastLength4' float fastLength4(float4 v) ^ :175:7: warning: unused function 'length3' float length3(const float4 a) ^ :186:7: warning: unused function 'dot3w1' float dot3w1(const float4 point, const float4 eqn) ^ :199:8: warning: unused function 'normalize4' float4 normalize4(const float4 a) ^ :205:8: warning: unused function 'createEquation' float4 createEquation(const float4 a, const float4 b, const float4 c) ^ :234:11: warning: unused function 'mtZero' Matrix3x3 mtZero() ^ :243:11: warning: unused function 'mtIdentity' Matrix3x3 mtIdentity() ^ :261:11: warning: unused function 'mtMul' Matrix3x3 mtMul(Matrix3x3 a, Matrix3x3 b) ^ :281:8: warning: unused function 'mtMul1' float4 mtMul1(Matrix3x3 a, float4 b) ^ :291:8: warning: unused function 'mtMul3' float4 mtMul3(float4 a, Matrix3x3 b) ^ :325:12: warning: unused function 'qtNormalize' Quaternion qtNormalize(Quaternion in) ^ :346:8: warning: unused function 'qtInvRotate' float4 qtInvRotate(const Quaternion q, float4 vec) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/solverSetup.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :39:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :45:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :55:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :372:6: warning: no previous prototype for function 'setLinearAndAngular' void setLinearAndAngular( b3Float4ConstArg n, b3Float4ConstArg r0, b3Float4ConstArg r1, b3Float4\* linear, b3Float4\* angular0, b3Float4\* angular1) ^ :378:7: warning: no previous prototype for function 'calcRelVel' float calcRelVel( b3Float4ConstArg l0, b3Float4ConstArg l1, b3Float4ConstArg a0, b3Float4ConstArg a1, b3Float4ConstArg linVel0, ^ :383:7: warning: no previous prototype for function 'calcJacCoeff' float calcJacCoeff(b3Float4ConstArg linear0, b3Float4ConstArg linear1, b3Float4ConstArg angular0, b3Float4ConstArg angular1, ^ :393:6: warning: no previous prototype for function 'setConstraint4' void setConstraint4( b3Float4ConstArg posA, b3Float4ConstArg linVelA, b3Float4ConstArg angVelA, float invMassA, b3Mat3x3ConstArg invInertiaA, ^ :467:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring #pragma OPENCL EXTENSION cl_amd_printf : enable ^ :494:9: warning: 'make_float4' macro redefined #define make_float4 (float4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3140:9: note: previous definition is here #define make_float4(A,B,C,D) (float4)((A),(B),(C),(D)) ^ :495:9: warning: 'make_float2' macro redefined #define make_float2 (float2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3137:9: note: previous definition is here #define make_float2(A,B) (float2)((A),(B)) ^ :496:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :497:9: warning: 'make_int4' macro redefined #define make_int4 (int4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3115:9: note: previous definition is here #define make_int4(A,B,C,D) (int4)((A),(B),(C),(D)) ^ :498:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :499:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ :53:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :77:12: warning: unused function 'b3Contact4Data_getNumPoints' inline int b3Contact4Data_getNumPoints(const struct b3Contact4Data\* contact) ^ :81:13: warning: unused function 'b3Contact4Data_setNumPoints' inline void b3Contact4Data_setNumPoints(struct b3Contact4Data\* contact, int numPoints) ^ :110:14: warning: unused function 'b3GetFrictionCoeff' inline float b3GetFrictionCoeff(b3ContactConstraint4_t\* constraint) ^ :140:15: warning: unused function 'b3FastNormalize4' inline float4 b3FastNormalize4(float4 v) ^ :159:15: warning: unused function 'b3QuatNormalized' inline b3Quat b3QuatNormalized(b3QuatConstArg in) ^ :188:15: warning: unused function 'b3QuatInvRotate' inline float4 b3QuatInvRotate(b3QuatConstArg q, b3QuatConstArg vec) ^ :192:17: warning: unused function 'b3TransformPoint' inline b3Float4 b3TransformPoint(b3Float4ConstArg point, b3Float4ConstArg translation, b3QuatConstArg orientation) ^ :214:17: warning: unused function 'b3QuatGetRotationMatrix' inline b3Mat3x3 b3QuatGetRotationMatrix(b3Quat quat) ^ :232:17: warning: unused function 'b3AbsoluteMat3x3' inline b3Mat3x3 b3AbsoluteMat3x3(b3Mat3x3ConstArg matIn) ^ :253:10: warning: unused function 'mtZero' b3Mat3x3 mtZero() ^ :262:10: warning: unused function 'mtIdentity' b3Mat3x3 mtIdentity() ^ :280:10: warning: unused function 'mtMul' b3Mat3x3 mtMul(b3Mat3x3 a, b3Mat3x3 b) ^ :300:10: warning: unused function 'mtMul1' b3Float4 mtMul1(b3Mat3x3 a, b3Float4 b) ^ :506:7: warning: unused function 'fastDiv' float fastDiv(float numerator, float denominator) ^ :512:8: warning: unused function 'fastDiv4' float4 fastDiv4(float4 numerator, float4 denominator) ^ :517:7: warning: unused function 'fastSqrtf' float fastSqrtf(float f2) ^ :523:7: warning: unused function 'fastRSqrt' float fastRSqrt(float f2) ^ :528:7: warning: unused function 'fastLength4' float fastLength4(float4 v) ^ :556:7: warning: unused function 'length3' float length3(const float4 a) ^ :567:7: warning: unused function 'dot3w1' float dot3w1(const float4 point, const float4 eqn) ^ :580:8: warning: unused function 'normalize4' float4 normalize4(const float4 a) ^ :586:8: warning: unused function 'createEquation' float4 createEquation(const float4 a, const float4 b, const float4 c) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel BatchSolveKernelFriction ready. compiling kernel BatchSolveKernelContact ready. compiling kernel ContactToConstraintKernel ready. compiling kernel SetSortDataKernel ready. compiling kernel ReorderContactKernel ready. compiling kernel CopyConstraintKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/batchingKernels.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :39:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :45:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :55:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :86:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring #pragma OPENCL EXTENSION cl_amd_printf : enable ^ :113:9: warning: 'make_float4' macro redefined #define make_float4 (float4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3140:9: note: previous definition is here #define make_float4(A,B,C,D) (float4)((A),(B),(C),(D)) ^ :114:9: warning: 'make_float2' macro redefined #define make_float2 (float2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3137:9: note: previous definition is here #define make_float2(A,B) (float2)((A),(B)) ^ :115:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :116:9: warning: 'make_int4' macro redefined #define make_int4 (int4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3115:9: note: previous definition is here #define make_int4(A,B,C,D) (int4)((A),(B),(C),(D)) ^ :117:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :118:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ :142:5: warning: no previous prototype for function 'readBuf' u32 readBuf(**local u32\* buff, int idx) ^ :149:6: warning: no previous prototype for function 'writeBuf' void writeBuf(__local u32\* buff, int idx) ^ :157:5: warning: no previous prototype for function 'tryWrite' u32 tryWrite(__local u32\* buff, int idx) ^ :203:16: warning: comparison of integers of different signs: '__attribute**((address_space(3))) u32' (aka '**attribute**((address_space(3))) unsigned int') and 'const int' if( ldsGEnd < m_n ) ~~~~~~~ ^ ~~~ :207:18: warning: comparison of integers of different signs: '**attribute**((address_space(3))) u32' (aka '**attribute**((address_space(3))) unsigned int') and 'const int' if( ldsGEnd >= m_n ) break; ~~~~~~~ ^ ~~~ :312:20: warning: comparison of integers of different signs: 'int' and '**attribute**((address_space(3))) u32' (aka '**attribute**((address_space(3))) unsigned int') for(int i=lIdx; i:323:21: warning: comparison of integers of different signs: 'int' and '**attribute**((address_space(3))) u32' (aka '**attribute**((address_space(3))) unsigned int') for(int i=lIdx; i:336:15: warning: comparison of integers of different signs: '**attribute**((address_space(3))) u32' (aka '**attribute**((address_space(3))) unsigned int') and 'const int' if( ldsGEnd == m_n && ldsRingEnd == 0 ) ~~~~~~~ ^ ~~~ :53:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :77:12: warning: unused function 'b3Contact4Data_getNumPoints' inline int b3Contact4Data_getNumPoints(const struct b3Contact4Data\* contact) ^ :81:13: warning: unused function 'b3Contact4Data_setNumPoints' inline void b3Contact4Data_setNumPoints(struct b3Contact4Data\* contact, int numPoints) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel CreateBatches ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/batchingKernelsNew.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :39:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :45:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :55:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :86:26: warning: unknown OpenCL extension 'cl_amd_printf' - ignoring #pragma OPENCL EXTENSION cl_amd_printf : enable ^ :114:9: warning: 'make_float4' macro redefined #define make_float4 (float4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3140:9: note: previous definition is here #define make_float4(A,B,C,D) (float4)((A),(B),(C),(D)) ^ :115:9: warning: 'make_float2' macro redefined #define make_float2 (float2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3137:9: note: previous definition is here #define make_float2(A,B) (float2)((A),(B)) ^ :116:9: warning: 'make_uint4' macro redefined #define make_uint4 (uint4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3121:9: note: previous definition is here #define make_uint4(A,B,C,D) (uint4)((A),(B),(C),(D)) ^ :117:9: warning: 'make_int4' macro redefined #define make_int4 (int4) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3115:9: note: previous definition is here #define make_int4(A,B,C,D) (int4)((A),(B),(C),(D)) ^ :118:9: warning: 'make_uint2' macro redefined #define make_uint2 (uint2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3119:9: note: previous definition is here #define make_uint2(A,B) (uint2)((A),(B)) ^ :119:9: warning: 'make_int2' macro redefined #define make_int2 (int2) ^ /System/Library/Frameworks/OpenCL.framework/Resources/cl_kernel.h:3113:9: note: previous definition is here #define make_int2(A,B) (int2)((A),(B)) ^ :156:5: warning: no previous prototype for function 'readBuf' u32 readBuf(__local u32\* buff, int idx) ^ :163:6: warning: no previous prototype for function 'writeBuf' void writeBuf(__local u32\* buff, int idx) ^ :171:5: warning: no previous prototype for function 'tryWrite' u32 tryWrite(__local u32\* buff, int idx) ^ :53:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :77:12: warning: unused function 'b3Contact4Data_getNumPoints' inline int b3Contact4Data_getNumPoints(const struct b3Contact4Data\* contact) ^ :81:13: warning: unused function 'b3Contact4Data_setNumPoints' inline void b3Contact4Data_setNumPoints(struct b3Contact4Data\* contact, int numPoints) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel CreateBatchesNew ready. clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel LocalScanKernel ready. compiling kernel TopLevelScanKernel ready. compiling kernel AddOffsetKernel ready. clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel FillIntKernel ready. compiling kernel FillUnsignedIntKernel ready. compiling kernel FillFloatKernel ready. compiling kernel FillInt2Kernel ready. clBuildProgram successfully compiled cached binary: cache/RadixSort32Kernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel StreamCountSortDataKernel ready. compiling kernel StreamCountKernel ready. compiling kernel SortAndScatterSortDataKernel ready. compiling kernel SortAndScatterKernel ready. compiling kernel PrefixScanKernel ready. clBuildProgram successfully compiled cached binary: cache/PrefixScanKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel LocalScanKernel ready. compiling kernel TopLevelScanKernel ready. compiling kernel AddOffsetKernel ready. clBuildProgram successfully compiled cached binary: cache/BoundSearchKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel SearchSortDataLowerKernel ready. compiling kernel SearchSortDataUpperKernel ready. compiling kernel SubtractKernel ready. clBuildProgram successfully compiled cached binary: cache/FillKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel FillIntKernel ready. compiling kernel FillUnsignedIntKernel ready. compiling kernel FillFloatKernel ready. compiling kernel FillInt2Kernel ready. clBuildProgram successfully compiled cached binary: cache/solveContact.cl.ATI Radeon HD 6750M.1.0.bin clBuildProgram successfully compiled cached binary: cache/solveFriction.cl.ATI Radeon HD 6750M.1.0.bin clBuildProgram successfully compiled cached binary: cache/solverSetup2.cl.ATI Radeon HD 6750M.1.0.bin clBuildProgram successfully compiled cached binary: cache/solverSetup.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel BatchSolveKernelFriction ready. compiling kernel BatchSolveKernelContact ready. compiling kernel solveSingleContactKernel ready. compiling kernel solveSingleFrictionKernel ready. compiling kernel ContactToConstraintKernel ready. compiling kernel SetSortDataKernel ready. compiling kernel SetDeterminismSortDataBodyA ready. compiling kernel SetDeterminismSortDataBodyB ready. compiling kernel SetDeterminismSortDataChildShapeA ready. compiling kernel SetDeterminismSortDataChildShapeB ready. compiling kernel ReorderContactKernel ready. compiling kernel CopyConstraintKernel ready. clBuildProgram successfully compiled cached binary: cache/batchingKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel CreateBatches ready. clBuildProgram successfully compiled cached binary: cache/batchingKernelsNew.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel CreateBatchesNew ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/rayCastKernels.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :118:6: warning: no previous prototype for function 'trInverse' void trInverse(float4 translationIn, Quaternion orientationIn, ^ :124:6: warning: no previous prototype for function 'rayConvex' bool rayConvex(float4 rayFromLocal, float4 rayToLocal, int numFaces, int faceOffset, ^ :178:6: warning: no previous prototype for function 'sphere_intersect' bool sphere_intersect(float4 spherePos, float radius, float4 rayFrom, float4 rayTo, float\* hitFraction) ^ :199:8: warning: no previous prototype for function 'setInterpolate3' float4 setInterpolate3(float4 from, float4 to, float t) ^ :236:29: warning: comparison of integers of different signs: 'int' and 'unsigned int' if (cachedCollidableIndex != body.m_collidableIdx) ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~ :92:13: warning: unused function 'qtNormalize' Quaternion qtNormalize(Quaternion in) ^ :114:9: warning: unused function 'qtInvRotate' float4 qtInvRotate(const Quaternion q, float4 vec) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel rayCastKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/integrateKernel.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :39:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :45:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :55:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :55:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :53:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :78:15: warning: unused function 'b3FastNormalize4' inline float4 b3FastNormalize4(float4 v) ^ :126:15: warning: unused function 'b3QuatInvRotate' inline float4 b3QuatInvRotate(b3QuatConstArg q, b3QuatConstArg vec) ^ :130:17: warning: unused function 'b3TransformPoint' inline b3Float4 b3TransformPoint(b3Float4ConstArg point, b3Float4ConstArg translation, b3QuatConstArg orientation) ^ :152:17: warning: unused function 'b3QuatGetRotationMatrix' inline b3Mat3x3 b3QuatGetRotationMatrix(b3Quat quat) ^ :170:17: warning: unused function 'b3AbsoluteMat3x3' inline b3Mat3x3 b3AbsoluteMat3x3(b3Mat3x3ConstArg matIn) ^ :191:10: warning: unused function 'mtZero' b3Mat3x3 mtZero() ^ :200:10: warning: unused function 'mtIdentity' b3Mat3x3 mtIdentity() ^ :218:10: warning: unused function 'mtMul' b3Mat3x3 mtMul(b3Mat3x3 a, b3Mat3x3 b) ^ :238:10: warning: unused function 'mtMul1' b3Float4 mtMul1(b3Mat3x3 a, b3Float4 b) ^ :248:10: warning: unused function 'mtMul3' b3Float4 mtMul3(b3Float4 a, b3Mat3x3 b) ^ :336:13: warning: unused function 'b3IntegrateTransform' inline void b3IntegrateTransform( __global b3RigidBodyData_t\* body, float timeStep, float angularDamping, b3Float4ConstArg gravityAcceleration) ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel integrateTransformsKernel ready. b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,817]: Cannot open cached binary: cache/updateAabbsKernel.cl.ATI Radeon HD 6750M.1.0.bin b3Error[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,82]: Error: OpenCL Build Warning : Compiler build log: :29:8: warning: no previous prototype for function 'b3Dot3F4' float b3Dot3F4(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :35:11: warning: no previous prototype for function 'b3Cross3' b3Float4 b3Cross3(b3Float4ConstArg v0,b3Float4ConstArg v1) ^ :45:17: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :45:37: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :45:57: warning: double precision constant requires cl_khr_fp64, casting to single precision if(b3Fabs(v.x)>1e-6 || b3Fabs(v.y)>1e-6 || b3Fabs(v.z)>1e-6) ^ :386:6: warning: no previous prototype for function 'b3ComputeWorldAabb' void b3ComputeWorldAabb( int bodyId, __global const b3RigidBodyData_t\* bodies, __global const b3Collidable_t\* collidables, __global const b3Aabb_t\* localShapeAABB, __global b3Aabb_t\* worldAabbs) ^ :43:13: warning: unused function 'b3IsAlmostZero' inline bool b3IsAlmostZero(b3Float4ConstArg v) ^ :70:15: warning: unused function 'b3FastNormalize4' inline float4 b3FastNormalize4(float4 v) ^ :89:15: warning: unused function 'b3QuatNormalized' inline b3Quat b3QuatNormalized(b3QuatConstArg in) ^ :118:15: warning: unused function 'b3QuatInvRotate' inline float4 b3QuatInvRotate(b3QuatConstArg q, b3QuatConstArg vec) ^ :176:10: warning: unused function 'mtZero' b3Mat3x3 mtZero() ^ :185:10: warning: unused function 'mtIdentity' b3Mat3x3 mtIdentity() ^ :203:10: warning: unused function 'mtMul' b3Mat3x3 mtMul(b3Mat3x3 a, b3Mat3x3 b) ^ :223:10: warning: unused function 'mtMul1' b3Float4 mtMul1(b3Mat3x3 a, b3Float4 b) ^ :233:10: warning: unused function 'mtMul3' b3Float4 mtMul3(b3Float4 a, b3Mat3x3 b) ^ :283:13: warning: unused function 'b3TestAabbAgainstAabb' inline bool b3TestAabbAgainstAabb(b3Float4ConstArg aabbMin1,b3Float4ConstArg aabbMax1, ^ b3Warning[../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp,89]: warning compiling kernel initializeGpuAabbsFull ready. clBuildProgram successfully compiled cached binary: cache/rayCastKernels.cl.ATI Radeon HD 6750M.1.0.bin compiling kernel rayCastKernel ready.
erwincoumans commented 10 years ago

Can you test latest version and make sure to delete the 'cache' folder in your build system? (ideally check out the source in a clean location) Please re-open if you still experience crashes. Make sure to run the demo a couple of times.

conversy commented 10 years ago

I can’t anymore with 10.8, meanwhile I installed Mavericks... I tested it a little bit, there are less problems.

Thanks !

Stéphane

Le 16 janv. 2014 à 23:32, erwincoumans notifications@github.com a écrit :

Can you test latest version and make sure to delete the 'cache' folder in your build system? (ideally check out the source in a clean location) Please re-open if you still experience crashes. Make sure to run the demo a couple of times.

— Reply to this email directly or view it on GitHub.