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