Skip to content

Commit 079d575

Browse files
sherry-yuanpcolberg
authored andcommitted
Revert "Fix simulation of multi-memory systems"
This reverts commit d9df7a9.
1 parent 1c84c13 commit 079d575

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/acl_mem.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4424,19 +4424,6 @@ void acl_resize_reserved_allocations_for_device(cl_mem mem,
44244424
unsigned int num_global_mem_systems =
44254425
def.autodiscovery_def.num_global_mem_systems;
44264426

4427-
// When we don't know how many memory systems will exist
4428-
// Load as much as needed.
4429-
num_global_mem_systems = std::max(num_global_mem_systems, mem->mem_id + 1);
4430-
4431-
// For the simulation flow we don't know how many memory systems will exist
4432-
// until we load the .aocx, which may not happen until somewhat later.
4433-
// Reserving space is quite cheap, so reserve space for many memory systems.
4434-
int offline_mode = 0;
4435-
(void)acl_get_offline_device_user_setting(&offline_mode);
4436-
if (offline_mode == ACL_CONTEXT_MPSIM) {
4437-
num_global_mem_systems = std::max(num_global_mem_systems, 128u);
4438-
}
4439-
44404427
#ifdef MEM_DEBUG_MSG
44414428
printf(
44424429
"resizing reserved_allocations, physical_device_id:%u, target_size:%u \n",

0 commit comments

Comments
 (0)