Skip to content

Commit 630349d

Browse files
committed
clang-format
1 parent fe3c0e4 commit 630349d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/acl_mem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ CL_API_ENTRY cl_mem clCreateBufferWithPropertiesINTEL(
433433
bank_id = (cl_uint) * (properties + 1);
434434
} break;
435435
case CL_MEM_ALLOC_BUFFER_LOCATION_INTEL: {
436-
tmp_mem_id = (unsigned int) * (properties + 1);
436+
tmp_mem_id = (unsigned int)*(properties + 1);
437437
} break;
438438
default: {
439439
UNLOCK_BAIL_INFO(CL_INVALID_DEVICE, context, "Invalid properties");
@@ -4411,7 +4411,7 @@ void acl_resize_reserved_allocations_for_device(cl_mem mem,
44114411
unsigned int physical_device_id = def.physical_device_id;
44124412
unsigned int num_global_mem_systems =
44134413
def.autodiscovery_def.num_global_mem_systems;
4414-
4414+
44154415
// When we don't know how many memory systems will exist
44164416
// Load as much as needed.
44174417
num_global_mem_systems = std::max(num_global_mem_systems, mem->mem_id + 1);

src/acl_usm.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ clDeviceMemAllocINTEL(cl_context context, cl_device_id device,
255255
cl_int status;
256256

257257
// Use cl_mem for convenience
258-
cl_mem usm_device_buffer = clCreateBufferWithPropertiesINTEL(context, NULL, CL_MEM_READ_WRITE, size, NULL, &status);
258+
cl_mem usm_device_buffer = clCreateBufferWithPropertiesINTEL(
259+
context, NULL, CL_MEM_READ_WRITE, size, NULL, &status);
259260
if (status != CL_SUCCESS) {
260261
UNLOCK_BAIL_INFO(status, context, "Failed to allocate device memory");
261262
}

0 commit comments

Comments
 (0)