remove some warnings
This commit is contained in:
@@ -276,8 +276,9 @@ void b3GpuGridBroadphase::calculateOverlappingPairs(int maxPairs)
|
||||
{
|
||||
b3AlignedObjectArray<b3Int4> pairsCpu;
|
||||
m_gpuPairs.copyToHost(pairsCpu);
|
||||
|
||||
printf("m_gpuPairs.size()=%d\n",m_gpuPairs.size());
|
||||
|
||||
int sz = m_gpuPairs.size();
|
||||
printf("m_gpuPairs.size()=%d\n",sz);
|
||||
for (int i=0;i<m_gpuPairs.size();i++)
|
||||
{
|
||||
printf("pair %d = %d,%d\n",i,pairsCpu[i].x,pairsCpu[i].y);
|
||||
|
||||
@@ -782,7 +782,8 @@ cl_program b3OpenCLUtils_compileCLProgramFromString(cl_context clContext, cl_dev
|
||||
binarySize = ftell( file );
|
||||
rewind( file );
|
||||
binary = (char*)malloc(sizeof(char)*binarySize);
|
||||
fread( binary, sizeof(char), binarySize, file );
|
||||
int bytesRead;
|
||||
bytesRead = fread( binary, sizeof(char), binarySize, file );
|
||||
fclose( file );
|
||||
|
||||
m_cpProgram = clCreateProgramWithBinary( clContext, 1,&device, &binarySize, (const unsigned char**)&binary, 0, &status );
|
||||
|
||||
Reference in New Issue
Block a user