Skip to content

Commit 11bd103

Browse files
committed
fix format.
Signed-off-by: JackAKirk <[email protected]>
1 parent 76c9653 commit 11bd103

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/adapters/cuda/usm.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ ur_result_t USMSharedAllocImpl(void **ResultPtr, ur_context_handle_t Context,
159159
ScopedContext Active(CommandDevice);
160160
UR_CHECK_ERROR(cuMemAllocManaged((CUdeviceptr *)ResultPtr, Size,
161161
CU_MEM_ATTACH_GLOBAL));
162-
if (getAttribute(CommandDevice, CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS)) {
162+
if (getAttribute(CommandDevice,
163+
CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS)) {
163164
UR_CHECK_ERROR(cuMemAdvise((CUdeviceptr)*ResultPtr, Size,
164-
CU_MEM_ADVISE_SET_ACCESSED_BY, CommandDevice->get()));
165+
CU_MEM_ADVISE_SET_ACCESSED_BY,
166+
CommandDevice->get()));
165167
}
166168
for (const auto &Dev : Context->getDevices()) {
167169
if (getAttribute(Dev, CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS)) {

0 commit comments

Comments
 (0)