Skip to content

Commit e18cf57

Browse files
committed
Fix format; attempt 2.
Signed-off-by: JackAKirk <[email protected]>
1 parent 11bd103 commit e18cf57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/adapters/cuda/usm.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ ur_result_t USMSharedAllocImpl(void **ResultPtr, ur_context_handle_t Context,
161161
CU_MEM_ATTACH_GLOBAL));
162162
if (getAttribute(CommandDevice,
163163
CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS)) {
164-
UR_CHECK_ERROR(cuMemAdvise((CUdeviceptr)*ResultPtr, Size,
165-
CU_MEM_ADVISE_SET_ACCESSED_BY,
166-
CommandDevice->get()));
167-
}
164+
UR_CHECK_ERROR(cuMemAdvise((CUdeviceptr)*ResultPtr, Size,
165+
CU_MEM_ADVISE_SET_ACCESSED_BY,
166+
CommandDevice->get()));
167+
}
168168
for (const auto &Dev : Context->getDevices()) {
169169
if (getAttribute(Dev, CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS)) {
170170
UR_CHECK_ERROR(cuMemAdvise((CUdeviceptr)*ResultPtr, Size,

0 commit comments

Comments
 (0)