Commit 50ecb310 authored by Uldis Locans's avatar Uldis Locans

remove any OpenCL calls when DKS compiled without OpenCL

parent 3d130aa0
......@@ -888,9 +888,10 @@ public:
* TODO: opencl and mic imlementation
*/
int callMemInfo() {
#ifdef DKS_CUDA
if (apiCuda())
return CUDA_SAFECALL(cbase->cuda_memInfo());
#endif
return DKS_ERROR;
}
......@@ -899,11 +900,13 @@ public:
* Used for debuging and timing purposes only.
*/
void oclEventInfo() {
#ifdef DKS_OPENCL
if (apiOpenCL())
return OPENCL_SAFECALL(oclbase->ocl_eventInfo());
#endif
}
/**
* Test function to profile opencl kernel calls.
* Used for debuging and timing purposes only.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment