GPU_VIPER.py (13731:67cd980cb20f) | GPU_VIPER.py (13885:d10ea5e56cb0) |
---|---|
1# Copyright (c) 2011-2015 Advanced Micro Devices, Inc. 2# All rights reserved. 3# 4# For use for simulation and test purposes only 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are met: 8# --- 485 unchanged lines hidden (view full) --- 494 cp_cntrl.responseToCore = MessageBuffer() 495 cp_cntrl.responseToCore.slave = ruby_system.network.master 496 497 cp_cntrl.mandatoryQueue = MessageBuffer() 498 cp_cntrl.triggerQueue = MessageBuffer(ordered = True) 499 500 cpuCluster.add(cp_cntrl) 501 | 1# Copyright (c) 2011-2015 Advanced Micro Devices, Inc. 2# All rights reserved. 3# 4# For use for simulation and test purposes only 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are met: 8# --- 485 unchanged lines hidden (view full) --- 494 cp_cntrl.responseToCore = MessageBuffer() 495 cp_cntrl.responseToCore.slave = ruby_system.network.master 496 497 cp_cntrl.mandatoryQueue = MessageBuffer() 498 cp_cntrl.triggerQueue = MessageBuffer(ordered = True) 499 500 cpuCluster.add(cp_cntrl) 501 |
502 # Register CPUs and caches for each CorePair and directory (SE mode only) 503 if not full_system: 504 FileSystemConfig.config_filesystem(options) 505 for i in xrange((options.num_cpus + 1) // 2): 506 FileSystemConfig.register_cpu(physical_package_id = 0, 507 core_siblings = \ 508 xrange(options.num_cpus), 509 core_id = i*2, 510 thread_siblings = []) 511 512 FileSystemConfig.register_cpu(physical_package_id = 0, 513 core_siblings = \ 514 xrange(options.num_cpus), 515 core_id = i*2+1, 516 thread_siblings = []) 517 518 FileSystemConfig.register_cache(level = 0, 519 idu_type = 'Instruction', 520 size = options.l1i_size, 521 line_size = options.cacheline_size, 522 assoc = options.l1i_assoc, 523 cpus = [i*2, i*2+1]) 524 525 FileSystemConfig.register_cache(level = 0, 526 idu_type = 'Data', 527 size = options.l1d_size, 528 line_size = options.cacheline_size, 529 assoc = options.l1d_assoc, 530 cpus = [i*2]) 531 532 FileSystemConfig.register_cache(level = 0, 533 idu_type = 'Data', 534 size = options.l1d_size, 535 line_size = options.cacheline_size, 536 assoc = options.l1d_assoc, 537 cpus = [i*2+1]) 538 539 FileSystemConfig.register_cache(level = 1, 540 idu_type = 'Unified', 541 size = options.l2_size, 542 line_size = options.cacheline_size, 543 assoc = options.l2_assoc, 544 cpus = [i*2, i*2+1]) 545 546 for i in range(options.num_dirs): 547 FileSystemConfig.register_cache(level = 2, 548 idu_type = 'Unified', 549 size = options.l3_size, 550 line_size = options.cacheline_size, 551 assoc = options.l3_assoc, 552 cpus = [n for n in 553 xrange(options.num_cpus)]) 554 |
|
502 gpuCluster = None 503 if hasattr(options, 'bw_scalor') and options.bw_scalor > 0: 504 gpuCluster = Cluster(extBW = crossbar_bw, intBW = crossbar_bw) 505 else: 506 gpuCluster = Cluster(extBW = 8, intBW = 8) # 16 GB/s 507 for i in range(options.num_compute_units): 508 509 tcp_cntrl = TCPCntrl(TCC_select_num_bits = TCC_bits, --- 167 unchanged lines hidden --- | 555 gpuCluster = None 556 if hasattr(options, 'bw_scalor') and options.bw_scalor > 0: 557 gpuCluster = Cluster(extBW = crossbar_bw, intBW = crossbar_bw) 558 else: 559 gpuCluster = Cluster(extBW = 8, intBW = 8) # 16 GB/s 560 for i in range(options.num_compute_units): 561 562 tcp_cntrl = TCPCntrl(TCC_select_num_bits = TCC_bits, --- 167 unchanged lines hidden --- |