@@ -245,7 +245,7 @@ Error OpenCLDeviceManager::init() {
245
245
RETURN_IF_ERR (parseConfig ());
246
246
247
247
cl_uint numPlatforms{0 };
248
- cl_int err = clGetPlatformIDs (0 , NULL , &numPlatforms);
248
+ cl_int err = clGetPlatformIDs (0 , nullptr , &numPlatforms);
249
249
if (err != CL_SUCCESS) {
250
250
return MAKE_ERR (" clGetPlatformIDs Failed." );
251
251
}
@@ -255,7 +255,7 @@ Error OpenCLDeviceManager::init() {
255
255
}
256
256
257
257
std::vector<cl_platform_id> platform_ids (numPlatforms);
258
- err = clGetPlatformIDs (numPlatforms, platform_ids.data (), NULL );
258
+ err = clGetPlatformIDs (numPlatforms, platform_ids.data (), nullptr );
259
259
260
260
cl_platform_id platform_id_used = platform_ids[clPlatformId];
261
261
@@ -270,7 +270,7 @@ Error OpenCLDeviceManager::init() {
270
270
271
271
cl_ulong mem_size;
272
272
err = clGetDeviceInfo (deviceId_, CL_DEVICE_GLOBAL_MEM_SIZE, sizeof (cl_ulong),
273
- &mem_size, NULL );
273
+ &mem_size, nullptr );
274
274
if (err != CL_SUCCESS) {
275
275
return MAKE_ERR (" Error getting device memory limit" );
276
276
}
@@ -285,14 +285,14 @@ Error OpenCLDeviceManager::init() {
285
285
localMemSize_ = 0 ;
286
286
cl_device_local_mem_type localMemType;
287
287
err = clGetDeviceInfo (deviceId_, CL_DEVICE_LOCAL_MEM_TYPE,
288
- sizeof (localMemType), &localMemType, NULL );
288
+ sizeof (localMemType), &localMemType, nullptr );
289
289
if (err != CL_SUCCESS) {
290
290
return MAKE_ERR (" Error getting device local memory type." );
291
291
}
292
292
if (localMemType == CL_LOCAL) {
293
293
cl_ulong localMemSize;
294
294
err = clGetDeviceInfo (deviceId_, CL_DEVICE_LOCAL_MEM_SIZE,
295
- sizeof (localMemSize), &localMemSize, NULL );
295
+ sizeof (localMemSize), &localMemSize, nullptr );
296
296
if (err != CL_SUCCESS) {
297
297
return MAKE_ERR (" Error getting device local memory type." );
298
298
}
@@ -668,7 +668,7 @@ void OpenCLDeviceManager::translateTraceEvents(
668
668
auto &event = devBindings->kernelLaunches .back ().event_ ;
669
669
cl_ulong time_end;
670
670
clGetEventProfilingInfo (event, CL_PROFILING_COMMAND_END, sizeof (time_end),
671
- &time_end, NULL );
671
+ &time_end, nullptr );
672
672
673
673
// Get the difference between the last event's end and the tsOffset
674
674
// timestamp.
@@ -694,12 +694,12 @@ void OpenCLDeviceManager::translateTraceEvents(
694
694
695
695
if (clGetEventProfilingInfo (event, CL_PROFILING_COMMAND_START,
696
696
sizeof (timeStart), &timeStart,
697
- NULL ) != CL_SUCCESS) {
697
+ nullptr ) != CL_SUCCESS) {
698
698
continue ;
699
699
}
700
700
if (clGetEventProfilingInfo (event, CL_PROFILING_COMMAND_END,
701
701
sizeof (timeEnd), &timeEnd,
702
- NULL ) != CL_SUCCESS) {
702
+ nullptr ) != CL_SUCCESS) {
703
703
continue ;
704
704
}
705
705
0 commit comments