Turn macro into function
Change-Id: I6df7a287da74e49857e7fa3f0ba1cf67ab3bc74a
This commit is contained in:
@@ -40,16 +40,17 @@
|
|||||||
|
|
||||||
#define STRINGIFY(...) #__VA_ARGS__"\n"
|
#define STRINGIFY(...) #__VA_ARGS__"\n"
|
||||||
|
|
||||||
#define DS_CHECK_STATUS(status, name) \
|
|
||||||
if (CL_SUCCESS != status) \
|
|
||||||
{ \
|
|
||||||
SAL_INFO("opencl.device", "Error code is " << status << " at " name); \
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace opencl {
|
namespace opencl {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
void DS_CHECK_STATUS(cl_int status, char const * name) {
|
||||||
|
if (CL_SUCCESS != status)
|
||||||
|
{
|
||||||
|
SAL_INFO("opencl.device", "Error code is " << status << " at " << name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool bIsDeviceSelected = false;
|
bool bIsDeviceSelected = false;
|
||||||
ds_device selectedDevice;
|
ds_device selectedDevice;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user