SConscript revision 11308
112312Sgabeblack@google.com# -*- mode:python -*- 212312Sgabeblack@google.com 313481Sgiacomo.travaglini@arm.com# 413481Sgiacomo.travaglini@arm.com# Copyright (c) 2015 Advanced Micro Devices, Inc. 513481Sgiacomo.travaglini@arm.com# All rights reserved. 612312Sgabeblack@google.com# 712312Sgabeblack@google.com# For use for simulation and test purposes only 812312Sgabeblack@google.com# 912312Sgabeblack@google.com# Redistribution and use in source and binary forms, with or without 1012312Sgabeblack@google.com# modification, are permitted provided that the following conditions are met: 1112312Sgabeblack@google.com# 1212312Sgabeblack@google.com# 1. Redistributions of source code must retain the above copyright notice, 1312312Sgabeblack@google.com# this list of conditions and the following disclaimer. 1412312Sgabeblack@google.com# 1512312Sgabeblack@google.com# 2. Redistributions in binary form must reproduce the above copyright notice, 1612312Sgabeblack@google.com# this list of conditions and the following disclaimer in the documentation 1712312Sgabeblack@google.com# and/or other materials provided with the distribution. 1812312Sgabeblack@google.com# 1912312Sgabeblack@google.com# 3. Neither the name of the copyright holder nor the names of its contributors 2012312Sgabeblack@google.com# may be used to endorse or promote products derived from this software 2112312Sgabeblack@google.com# without specific prior written permission. 2212312Sgabeblack@google.com# 2312312Sgabeblack@google.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2412312Sgabeblack@google.com# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2512312Sgabeblack@google.com# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2612312Sgabeblack@google.com# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 2712312Sgabeblack@google.com# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2812312Sgabeblack@google.com# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2912312Sgabeblack@google.com# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 3012312Sgabeblack@google.com# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 3112312Sgabeblack@google.com# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 3212312Sgabeblack@google.com# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3312312Sgabeblack@google.com# POSSIBILITY OF SUCH DAMAGE. 3413481Sgiacomo.travaglini@arm.com# 3513481Sgiacomo.travaglini@arm.com# Author: Anthony Gutierrez 3612312Sgabeblack@google.com# 3713481Sgiacomo.travaglini@arm.com 3813481Sgiacomo.travaglini@arm.comImport('*') 3912312Sgabeblack@google.com 4013481Sgiacomo.travaglini@arm.comif not env['BUILD_GPU']: 4113481Sgiacomo.travaglini@arm.com Return() 4212312Sgabeblack@google.com 4313481Sgiacomo.travaglini@arm.comSimObject('GPU.py') 4412312Sgabeblack@google.comSimObject('LdsState.py') 4512312Sgabeblack@google.comSimObject('X86GPUTLB.py') 4612312Sgabeblack@google.com 4713481Sgiacomo.travaglini@arm.comif env['TARGET_GPU_ISA'] == 'hsail': 4813481Sgiacomo.travaglini@arm.com Source('brig_object.cc') 4912312Sgabeblack@google.com Source('hsail_code.cc') 5013481Sgiacomo.travaglini@arm.com 5113481Sgiacomo.travaglini@arm.comSource('cl_driver.cc') 5212312Sgabeblack@google.comSource('compute_unit.cc') 5313481Sgiacomo.travaglini@arm.comSource('condition_register_state.cc') 5412312Sgabeblack@google.comSource('dispatcher.cc') 5513481Sgiacomo.travaglini@arm.comSource('exec_stage.cc') 5613481Sgiacomo.travaglini@arm.comSource('fetch_stage.cc') 57Source('fetch_unit.cc') 58Source('global_memory_pipeline.cc') 59Source('gpu_dyn_inst.cc') 60Source('gpu_exec_context.cc') 61Source('gpu_static_inst.cc') 62Source('gpu_tlb.cc') 63Source('hsa_object.cc') 64Source('kernel_cfg.cc') 65Source('lds_state.cc') 66Source('local_memory_pipeline.cc') 67Source('of_scheduling_policy.cc') 68Source('pool_manager.cc') 69Source('rr_scheduling_policy.cc') 70Source('schedule_stage.cc') 71Source('scheduler.cc') 72Source('scoreboard_check_stage.cc') 73Source('shader.cc') 74Source('simple_pool_manager.cc') 75Source('tlb_coalescer.cc') 76Source('vector_register_file.cc') 77Source('vector_register_state.cc') 78Source('wavefront.cc') 79 80DebugFlag('BRIG') 81DebugFlag('GPUCoalescer') 82DebugFlag('GPUDisp') 83DebugFlag('GPUExec') 84DebugFlag('GPUFetch') 85DebugFlag('GPUHsailCFInfo') 86DebugFlag('GPUMem') 87DebugFlag('GPUPort') 88DebugFlag('GPUPrefetch') 89DebugFlag('GPUReg') 90DebugFlag('GPUSync') 91DebugFlag('GPUTLB') 92DebugFlag('HSALoader') 93DebugFlag('HSAIL') 94DebugFlag('HSAILObject') 95DebugFlag('Predictor') 96DebugFlag('WavefrontStack') 97 98CompoundFlag('GPUALL', ['GPUCoalescer', 'GPUDisp', 'GPUExec', 'GPUFetch', 99 'GPUMem', 'GPUPort', 'GPUSync', 'GPUTLB', 'HSAIL']) 100