GEMM: Enabled use of cuBLAS when predicted beneficial
This commit is contained in:
@@ -217,9 +217,9 @@ void backend::platforms(std::vector<Platform> & platforms)
|
||||
if(dispatch::clinit())
|
||||
{
|
||||
cl_uint nplatforms;
|
||||
check(dispatch::dispatch::clGetPlatformIDs(0, NULL, &nplatforms));
|
||||
dispatch::dispatch::clGetPlatformIDs(0, NULL, &nplatforms);
|
||||
std::vector<cl_platform_id> clplatforms(nplatforms);
|
||||
check(dispatch::dispatch::clGetPlatformIDs(nplatforms, clplatforms.data(), NULL));
|
||||
dispatch::dispatch::clGetPlatformIDs(nplatforms, clplatforms.data(), NULL);
|
||||
for(cl_platform_id p: clplatforms){
|
||||
Platform tmp(p);
|
||||
if(tmp.name().find("CUDA")!=std::string::npos && has_cuda)
|
||||
|
Reference in New Issue
Block a user