GPU.py (11308:7d8836fd043d) GPU.py (11534:7106f550afad)
1#
2# Copyright (c) 2015 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# For use for simulation and test purposes only
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:

--- 45 unchanged lines hidden (view full) ---

54
55class VectorRegisterFile(SimObject):
56 type = 'VectorRegisterFile'
57 cxx_class = 'VectorRegisterFile'
58 cxx_header = 'gpu-compute/vector_register_file.hh'
59
60 simd_id = Param.Int(0, 'SIMD ID associated with this VRF')
61 num_regs_per_simd = Param.Int(2048, 'number of vector registers per SIMD')
1#
2# Copyright (c) 2015 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# For use for simulation and test purposes only
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:

--- 45 unchanged lines hidden (view full) ---

54
55class VectorRegisterFile(SimObject):
56 type = 'VectorRegisterFile'
57 cxx_class = 'VectorRegisterFile'
58 cxx_header = 'gpu-compute/vector_register_file.hh'
59
60 simd_id = Param.Int(0, 'SIMD ID associated with this VRF')
61 num_regs_per_simd = Param.Int(2048, 'number of vector registers per SIMD')
62 wfSize = Param.Int(64, 'Wavefront size (in work items)')
62 min_alloc = Param.Int(4, 'min number of VGPRs allocated per WF')
63
64class Wavefront(SimObject):
65 type = 'Wavefront'
66 cxx_class = 'Wavefront'
67 cxx_header = 'gpu-compute/wavefront.hh'
68
69 simdId = Param.Int('SIMD id (0-ComputeUnit.num_SIMDs)')
70 wf_slot_id = Param.Int('wavefront id (0-ComputeUnit.max_wfs)')
63 min_alloc = Param.Int(4, 'min number of VGPRs allocated per WF')
64
65class Wavefront(SimObject):
66 type = 'Wavefront'
67 cxx_class = 'Wavefront'
68 cxx_header = 'gpu-compute/wavefront.hh'
69
70 simdId = Param.Int('SIMD id (0-ComputeUnit.num_SIMDs)')
71 wf_slot_id = Param.Int('wavefront id (0-ComputeUnit.max_wfs)')
72 wfSize = Param.Int(64, 'Wavefront size (in work items)')
71
72class ComputeUnit(MemObject):
73 type = 'ComputeUnit'
74 cxx_class = 'ComputeUnit'
75 cxx_header = 'gpu-compute/compute_unit.hh'
76
77 wavefronts = VectorParam.Wavefront('Number of wavefronts')
78 wfSize = Param.Int(64, 'Wavefront size (in work items)')

--- 232 unchanged lines hidden ---
73
74class ComputeUnit(MemObject):
75 type = 'ComputeUnit'
76 cxx_class = 'ComputeUnit'
77 cxx_header = 'gpu-compute/compute_unit.hh'
78
79 wavefronts = VectorParam.Wavefront('Number of wavefronts')
80 wfSize = Param.Int(64, 'Wavefront size (in work items)')

--- 232 unchanged lines hidden ---