Linux fixes
This commit is contained in:
@@ -167,7 +167,6 @@ public:
|
|||||||
if (ciErrNum!=CL_SUCCESS)
|
if (ciErrNum!=CL_SUCCESS)
|
||||||
{
|
{
|
||||||
b3Error("OpenCL out-of-memory\n");
|
b3Error("OpenCL out-of-memory\n");
|
||||||
b3Assert(0);
|
|
||||||
_Count = 0;
|
_Count = 0;
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,6 +124,8 @@ int main(int argc, char* argv[])
|
|||||||
oclCHECKERROR(ciErrNum, CL_SUCCESS);
|
oclCHECKERROR(ciErrNum, CL_SUCCESS);
|
||||||
//normally you would create and execute kernels using this command queue
|
//normally you would create and execute kernels using this command queue
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
b3OpenCLArray<char> memTester(g_cxMainContext,g_cqCommandQue,0,true);
|
b3OpenCLArray<char> memTester(g_cxMainContext,g_cqCommandQue,0,true);
|
||||||
int maxMem = 8192;
|
int maxMem = 8192;
|
||||||
bool result=true;
|
bool result=true;
|
||||||
@@ -138,6 +140,8 @@ int main(int argc, char* argv[])
|
|||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
printf("allocated %d MB failed\n", i);
|
printf("allocated %d MB failed\n", i);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ function createProject(vendor)
|
|||||||
files {
|
files {
|
||||||
"main.cpp",
|
"main.cpp",
|
||||||
"../../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp",
|
"../../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp",
|
||||||
|
"../../../src/Bullet3Common/b3AlignedAllocator.cpp",
|
||||||
"../../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.h",
|
"../../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.h",
|
||||||
"../../../src/Bullet3Common/b3Logging.cpp",
|
"../../../src/Bullet3Common/b3Logging.cpp",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user