Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
sherry-yuan committed Dec 13, 2021
1 parent fe3c0e4 commit 630349d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/acl_mem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/acl_usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 630349d

Please # to comment.