File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -4424,19 +4424,6 @@ void acl_resize_reserved_allocations_for_device(cl_mem mem,
4424
4424
unsigned int num_global_mem_systems =
4425
4425
def.autodiscovery_def .num_global_mem_systems ;
4426
4426
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
-
4440
4427
#ifdef MEM_DEBUG_MSG
4441
4428
printf (
4442
4429
" resizing reserved_allocations, physical_device_id:%u, target_size:%u \n " ,
You can’t perform that action at this time.
0 commit comments