Skip to content

Commit c79fde5

Browse files
committed
Fixed code to pass key-value pair of buffer location property in simulation mode
1 parent b50288c commit c79fde5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/acl_usm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ CL_API_ENTRY void *CL_API_CALL clHostMemAllocINTEL(
154154
acl_get_offline_device_user_setting(&use_offline_only);
155155
if (use_offline_only == ACL_CONTEXT_MPSIM) {
156156
*mmd_properties_it++ = AOCL_MMD_MEM_PROPERTIES_BUFFER_LOCATION;
157+
*mmd_properties_it++ = *mem_id;
157158
}
158-
*mmd_properties_it++ = *mem_id;
159159
}
160160
*mmd_properties_it++ = 0;
161161
}
@@ -444,8 +444,8 @@ clSharedMemAllocINTEL(cl_context context, cl_device_id device,
444444
acl_get_offline_device_user_setting(&use_offline_only);
445445
if (use_offline_only == ACL_CONTEXT_MPSIM) {
446446
*mmd_properties_it++ = AOCL_MMD_MEM_PROPERTIES_BUFFER_LOCATION;
447+
*mmd_properties_it++ = *mem_id;
447448
}
448-
*mmd_properties_it++ = *mem_id;
449449
}
450450
*mmd_properties_it++ = 0;
451451
}

0 commit comments

Comments
 (0)