Tuning: Android UI improvement

This commit is contained in:
Philippe Tillet
2015-08-24 19:24:33 -04:00
parent 10524ebdee
commit 95f2564c1a
13 changed files with 422 additions and 726 deletions

View File

@@ -130,12 +130,12 @@ void backend::platforms(std::vector<Platform> & platforms)
#ifdef ISAAC_WITH_CUDA
platforms.push_back(Platform(CUDA));
#endif
// cl_uint nplatforms;
// ocl::check(clGetPlatformIDs(0, NULL, &nplatforms));
// std::vector<cl_platform_id> clplatforms(nplatforms);
// ocl::check(clGetPlatformIDs(nplatforms, clplatforms.data(), NULL));
// for(cl_platform_id p: clplatforms)
// platforms.push_back(Platform(p));
cl_uint nplatforms;
ocl::check(clGetPlatformIDs(0, NULL, &nplatforms));
std::vector<cl_platform_id> clplatforms(nplatforms);
ocl::check(clGetPlatformIDs(nplatforms, clplatforms.data(), NULL));
for(cl_platform_id p: clplatforms)
platforms.push_back(Platform(p));
}
void backend::synchronize(Context const & context)