remove btOclGetMaxFlopsDev, it was buggy. Just use device 0 in the demos. The OpenCL initialization needs more work/some GUI.
This commit is contained in:
@@ -71,7 +71,8 @@ void initCL( void* glCtx, void* glDC )
|
|||||||
|
|
||||||
|
|
||||||
oclCHECKERROR(ciErrNum, CL_SUCCESS);
|
oclCHECKERROR(ciErrNum, CL_SUCCESS);
|
||||||
g_cdDevice = btOclGetMaxFlopsDev(g_cxMainContext);
|
g_cdDevice = btOclGetDev(g_cxMainContext,0);
|
||||||
|
|
||||||
|
|
||||||
btOclPrintDevInfo(g_cdDevice);
|
btOclPrintDevInfo(g_cdDevice);
|
||||||
|
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ void btParticlesDynamicsWorld::initCLKernels(int argc, char** argv)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
oclCHECKERROR(ciErrNum, CL_SUCCESS);
|
oclCHECKERROR(ciErrNum, CL_SUCCESS);
|
||||||
m_cdDevice = btOclGetMaxFlopsDev(m_cxMainContext);
|
m_cdDevice = btOclGetDev(m_cxMainContext,0);
|
||||||
|
|
||||||
btOclPrintDevInfo(m_cdDevice);
|
btOclPrintDevInfo(m_cdDevice);
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ bool initCL( void* glCtx, void* glDC )
|
|||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
oclCHECKERROR(ciErrNum, CL_SUCCESS);
|
oclCHECKERROR(ciErrNum, CL_SUCCESS);
|
||||||
g_cdDevice = btOclGetMaxFlopsDev(g_cxMainContext);
|
g_cdDevice = btOclGetDev(g_cxMainContext,0);
|
||||||
|
|
||||||
if ( bDebug ) {
|
if ( bDebug ) {
|
||||||
btOclPrintDevInfo(g_cdDevice);
|
btOclPrintDevInfo(g_cdDevice);
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ SET(LinearMath_HDRS
|
|||||||
btConvexHullComputer.h
|
btConvexHullComputer.h
|
||||||
btDefaultMotionState.h
|
btDefaultMotionState.h
|
||||||
btGeometryUtil.h
|
btGeometryUtil.h
|
||||||
|
btGrahamScan2dConvexHull.h
|
||||||
btHashMap.h
|
btHashMap.h
|
||||||
btIDebugDraw.h
|
btIDebugDraw.h
|
||||||
btList.h
|
btList.h
|
||||||
|
|||||||
Reference in New Issue
Block a user