diff --git a/src/acl_mem.cpp b/src/acl_mem.cpp index d1030609..29936b92 100644 --- a/src/acl_mem.cpp +++ b/src/acl_mem.cpp @@ -433,7 +433,7 @@ CL_API_ENTRY cl_mem clCreateBufferWithPropertiesINTEL( bank_id = (cl_uint) * (properties + 1); } break; case CL_MEM_ALLOC_BUFFER_LOCATION_INTEL: { - tmp_mem_id = (unsigned int) * (properties + 1); + tmp_mem_id = (unsigned int)*(properties + 1); } break; default: { UNLOCK_BAIL_INFO(CL_INVALID_DEVICE, context, "Invalid properties"); @@ -4411,7 +4411,7 @@ void acl_resize_reserved_allocations_for_device(cl_mem mem, unsigned int physical_device_id = def.physical_device_id; unsigned int num_global_mem_systems = def.autodiscovery_def.num_global_mem_systems; - + // When we don't know how many memory systems will exist // Load as much as needed. num_global_mem_systems = std::max(num_global_mem_systems, mem->mem_id + 1); diff --git a/src/acl_usm.cpp b/src/acl_usm.cpp index 8982df9a..23b37d9d 100644 --- a/src/acl_usm.cpp +++ b/src/acl_usm.cpp @@ -255,7 +255,8 @@ clDeviceMemAllocINTEL(cl_context context, cl_device_id device, cl_int status; // Use cl_mem for convenience - cl_mem usm_device_buffer = clCreateBufferWithPropertiesINTEL(context, NULL, CL_MEM_READ_WRITE, size, NULL, &status); + cl_mem usm_device_buffer = clCreateBufferWithPropertiesINTEL( + context, NULL, CL_MEM_READ_WRITE, size, NULL, &status); if (status != CL_SUCCESS) { UNLOCK_BAIL_INFO(status, context, "Failed to allocate device memory"); }