SConscript revision 11692
111308Santhony.gutierrez@amd.com# -*- mode:python -*- 211308Santhony.gutierrez@amd.com 311308Santhony.gutierrez@amd.com# 411308Santhony.gutierrez@amd.com# Copyright (c) 2015 Advanced Micro Devices, Inc. 511308Santhony.gutierrez@amd.com# All rights reserved. 611308Santhony.gutierrez@amd.com# 711308Santhony.gutierrez@amd.com# For use for simulation and test purposes only 811308Santhony.gutierrez@amd.com# 911308Santhony.gutierrez@amd.com# Redistribution and use in source and binary forms, with or without 1011308Santhony.gutierrez@amd.com# modification, are permitted provided that the following conditions are met: 1111308Santhony.gutierrez@amd.com# 1211308Santhony.gutierrez@amd.com# 1. Redistributions of source code must retain the above copyright notice, 1311308Santhony.gutierrez@amd.com# this list of conditions and the following disclaimer. 1411308Santhony.gutierrez@amd.com# 1511308Santhony.gutierrez@amd.com# 2. Redistributions in binary form must reproduce the above copyright notice, 1611308Santhony.gutierrez@amd.com# this list of conditions and the following disclaimer in the documentation 1711308Santhony.gutierrez@amd.com# and/or other materials provided with the distribution. 1811308Santhony.gutierrez@amd.com# 1911308Santhony.gutierrez@amd.com# 3. Neither the name of the copyright holder nor the names of its contributors 2011308Santhony.gutierrez@amd.com# may be used to endorse or promote products derived from this software 2111308Santhony.gutierrez@amd.com# without specific prior written permission. 2211308Santhony.gutierrez@amd.com# 2311308Santhony.gutierrez@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2411308Santhony.gutierrez@amd.com# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2511308Santhony.gutierrez@amd.com# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2611308Santhony.gutierrez@amd.com# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 2711308Santhony.gutierrez@amd.com# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2811308Santhony.gutierrez@amd.com# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2911308Santhony.gutierrez@amd.com# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 3011308Santhony.gutierrez@amd.com# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 3111308Santhony.gutierrez@amd.com# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 3211308Santhony.gutierrez@amd.com# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3311308Santhony.gutierrez@amd.com# POSSIBILITY OF SUCH DAMAGE. 3411308Santhony.gutierrez@amd.com# 3511308Santhony.gutierrez@amd.com# Author: Anthony Gutierrez 3611308Santhony.gutierrez@amd.com# 3711308Santhony.gutierrez@amd.com 3811308Santhony.gutierrez@amd.comImport('*') 3911308Santhony.gutierrez@amd.com 4011308Santhony.gutierrez@amd.comif not env['BUILD_GPU']: 4111308Santhony.gutierrez@amd.com Return() 4211308Santhony.gutierrez@amd.com 4311308Santhony.gutierrez@amd.comSimObject('GPU.py') 4411692Santhony.gutierrez@amd.comSimObject('GPUStaticInstFlags.py') 4511308Santhony.gutierrez@amd.comSimObject('LdsState.py') 4611308Santhony.gutierrez@amd.comSimObject('X86GPUTLB.py') 4711308Santhony.gutierrez@amd.com 4811308Santhony.gutierrez@amd.comif env['TARGET_GPU_ISA'] == 'hsail': 4911308Santhony.gutierrez@amd.com Source('brig_object.cc') 5011308Santhony.gutierrez@amd.com Source('hsail_code.cc') 5111308Santhony.gutierrez@amd.com 5211308Santhony.gutierrez@amd.comSource('cl_driver.cc') 5311308Santhony.gutierrez@amd.comSource('compute_unit.cc') 5411308Santhony.gutierrez@amd.comSource('condition_register_state.cc') 5511308Santhony.gutierrez@amd.comSource('dispatcher.cc') 5611308Santhony.gutierrez@amd.comSource('exec_stage.cc') 5711308Santhony.gutierrez@amd.comSource('fetch_stage.cc') 5811308Santhony.gutierrez@amd.comSource('fetch_unit.cc') 5911308Santhony.gutierrez@amd.comSource('global_memory_pipeline.cc') 6011308Santhony.gutierrez@amd.comSource('gpu_dyn_inst.cc') 6111308Santhony.gutierrez@amd.comSource('gpu_exec_context.cc') 6211308Santhony.gutierrez@amd.comSource('gpu_static_inst.cc') 6311308Santhony.gutierrez@amd.comSource('gpu_tlb.cc') 6411308Santhony.gutierrez@amd.comSource('hsa_object.cc') 6511308Santhony.gutierrez@amd.comSource('kernel_cfg.cc') 6611308Santhony.gutierrez@amd.comSource('lds_state.cc') 6711308Santhony.gutierrez@amd.comSource('local_memory_pipeline.cc') 6811308Santhony.gutierrez@amd.comSource('of_scheduling_policy.cc') 6911308Santhony.gutierrez@amd.comSource('pool_manager.cc') 7011308Santhony.gutierrez@amd.comSource('rr_scheduling_policy.cc') 7111308Santhony.gutierrez@amd.comSource('schedule_stage.cc') 7211308Santhony.gutierrez@amd.comSource('scheduler.cc') 7311308Santhony.gutierrez@amd.comSource('scoreboard_check_stage.cc') 7411308Santhony.gutierrez@amd.comSource('shader.cc') 7511308Santhony.gutierrez@amd.comSource('simple_pool_manager.cc') 7611308Santhony.gutierrez@amd.comSource('tlb_coalescer.cc') 7711308Santhony.gutierrez@amd.comSource('vector_register_file.cc') 7811308Santhony.gutierrez@amd.comSource('vector_register_state.cc') 7911308Santhony.gutierrez@amd.comSource('wavefront.cc') 8011308Santhony.gutierrez@amd.com 8111308Santhony.gutierrez@amd.comDebugFlag('BRIG') 8211308Santhony.gutierrez@amd.comDebugFlag('GPUCoalescer') 8311308Santhony.gutierrez@amd.comDebugFlag('GPUDisp') 8411308Santhony.gutierrez@amd.comDebugFlag('GPUExec') 8511308Santhony.gutierrez@amd.comDebugFlag('GPUFetch') 8611308Santhony.gutierrez@amd.comDebugFlag('GPUHsailCFInfo') 8711308Santhony.gutierrez@amd.comDebugFlag('GPUMem') 8811308Santhony.gutierrez@amd.comDebugFlag('GPUPort') 8911308Santhony.gutierrez@amd.comDebugFlag('GPUPrefetch') 9011308Santhony.gutierrez@amd.comDebugFlag('GPUReg') 9111308Santhony.gutierrez@amd.comDebugFlag('GPUSync') 9211308Santhony.gutierrez@amd.comDebugFlag('GPUTLB') 9311642Salexandru.dutu@amd.comDebugFlag('GPUVRF') 9411308Santhony.gutierrez@amd.comDebugFlag('HSALoader') 9511308Santhony.gutierrez@amd.comDebugFlag('HSAIL') 9611308Santhony.gutierrez@amd.comDebugFlag('HSAILObject') 9711308Santhony.gutierrez@amd.comDebugFlag('Predictor') 9811308Santhony.gutierrez@amd.comDebugFlag('WavefrontStack') 9911308Santhony.gutierrez@amd.com 10011308Santhony.gutierrez@amd.comCompoundFlag('GPUALL', ['GPUCoalescer', 'GPUDisp', 'GPUExec', 'GPUFetch', 10111642Salexandru.dutu@amd.com 'GPUMem', 'GPUPort', 'GPUSync', 'GPUTLB', 'HSAIL', 10211642Salexandru.dutu@amd.com 'GPUVRF']) 103