remove any OpenCL calls when DKS compiled without OpenCL
This commit is contained in:
@ -888,9 +888,10 @@ public:
|
|||||||
* TODO: opencl and mic imlementation
|
* TODO: opencl and mic imlementation
|
||||||
*/
|
*/
|
||||||
int callMemInfo() {
|
int callMemInfo() {
|
||||||
|
#ifdef DKS_CUDA
|
||||||
if (apiCuda())
|
if (apiCuda())
|
||||||
return CUDA_SAFECALL(cbase->cuda_memInfo());
|
return CUDA_SAFECALL(cbase->cuda_memInfo());
|
||||||
|
#endif
|
||||||
return DKS_ERROR;
|
return DKS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -899,11 +900,13 @@ public:
|
|||||||
* Used for debuging and timing purposes only.
|
* Used for debuging and timing purposes only.
|
||||||
*/
|
*/
|
||||||
void oclEventInfo() {
|
void oclEventInfo() {
|
||||||
|
#ifdef DKS_OPENCL
|
||||||
if (apiOpenCL())
|
if (apiOpenCL())
|
||||||
return OPENCL_SAFECALL(oclbase->ocl_eventInfo());
|
return OPENCL_SAFECALL(oclbase->ocl_eventInfo());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test function to profile opencl kernel calls.
|
* Test function to profile opencl kernel calls.
|
||||||
* Used for debuging and timing purposes only.
|
* Used for debuging and timing purposes only.
|
||||||
|
Reference in New Issue
Block a user