gem5 v23.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
kernel_code.hh
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015-2017 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 *
15 * 3. Neither the name of the copyright holder nor the names of its
16 * contributors may be used to endorse or promote products derived from this
17 * software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#ifndef __GPU_COMPUTE_KERNEL_CODE_HH__
33#define __GPU_COMPUTE_KERNEL_CODE_HH__
34
35#include <bitset>
36#include <cstdint>
37
38namespace gem5
39{
40
55{
72};
73
75{
80};
81
83{
94
105 // the 32b below here represent the fields of
106 // the COMPUTE_PGM_RSRC1 register
109 uint32_t priority : 2;
114 uint32_t priv : 1;
115 uint32_t enable_dx10_clamp : 1;
116 uint32_t debug_mode : 1;
117 uint32_t enable_ieee_mode : 1;
118 uint32_t bulky : 1;
119 uint32_t cdbg_user : 1;
121 // end COMPUTE_PGM_RSRC1 register
122
123 // the 32b below here represent the fields of
124 // the COMPUTE_PGM_RSRC2 register
126 uint32_t user_sgpr_count : 5;
144 // end COMPUTE_PGM_RSRC2
145
146 // the 32b below here represent the fields of
147 // KERNEL_CODE_PROPERTIES
161 uint32_t is_ptr64 : 1;
163 uint32_t is_debug_enabled : 1;
164 uint32_t is_xnack_enabled : 1;
166 // end KERNEL_CODE_PROPERTIES
167
186 uint8_t reserved[12];
188 uint64_t control_directives[16];
189};
190
191} // namespace gem5
192
193#endif // __GPU_COMPUTE_KERNEL_CODE_HH__
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
ScalarRegInitFields
these enums represent the indices into the initialRegState bitfields in HsaKernelInfo.
@ GridWorkgroupCountZ
@ WorkgroupIdX
@ DispatchId
@ NumScalarInitFields
@ DispatchPtr
@ QueuePtr
@ PrivSegWaveByteOffset
@ PrivateSegBuf
@ WorkgroupIdY
@ PrivateSegSize
@ WorkgroupInfo
@ GridWorkgroupCountY
@ WorkgroupIdZ
@ GridWorkgroupCountX
@ FlatScratchInit
@ KernargSegPtr
VectorRegInitFields
@ WorkitemIdX
@ WorkitemIdZ
@ NumVectorInitFields
@ WorkitemIdY
uint32_t enable_exception_memory_violation
uint32_t amd_kernel_code_version_minor
uint32_t enable_ordered_append_gds
uint32_t float_mode_denorm_16_64
uint32_t kernel_code_properties_reserved1
uint8_t group_segment_alignment
uint32_t enable_sgpr_workgroup_info
uint32_t enable_sgpr_queue_ptr
uint32_t enable_sgpr_grid_workgroup_count_x
uint32_t enable_exception_ieee_754_fp_overflow
uint32_t enable_exception_ieee_754_fp_underflow
uint32_t gds_segment_byte_size
uint32_t enable_trap_handler
uint16_t wavefront_sgpr_count
int64_t kernel_code_entry_byte_offset
uint16_t debug_private_segment_buffer_sgpr
uint16_t reserved_vgpr_count
uint32_t granulated_wavefront_sgpr_count
uint16_t reserved_sgpr_first
uint32_t enable_sgpr_dispatch_ptr
uint16_t debug_wavefront_private_segment_offset_sgpr
uint64_t max_scratch_backing_memory_byte_size
uint32_t enable_sgpr_dispatch_id
uint32_t workitem_private_segment_byte_size
uint32_t enable_vgpr_workitem_id
uint8_t private_segment_alignment
uint16_t amd_machine_version_major
uint8_t kernarg_segment_alignment
uint16_t amd_machine_kind
uint32_t workgroup_fbarrier_count
uint32_t enable_exception_ieee_754_fp_invalid_operation
uint32_t is_dynamic_callstack
uint32_t workgroup_group_segment_byte_size
uint32_t float_mode_round_32
uint32_t enable_exception_fp_denormal_source
uint32_t private_element_size
uint32_t amd_kernel_code_version_major
uint32_t granulated_workitem_vgpr_count
The fields below are used to set program settings for compute shaders.
uint32_t enable_sgpr_private_segment_wave_byte_offset
uint32_t enable_sgpr_workgroup_id_y
uint32_t enable_exception_address_watch
uint32_t compute_pgm_rsrc1_reserved
uint32_t enable_sgpr_grid_workgroup_count_y
uint32_t enable_sgpr_workgroup_id_x
uint32_t compute_pgm_rsrc2_reserved
uint16_t workitem_vgpr_count
uint32_t enable_exception_ieee_754_fp_inexact
uint32_t enable_sgpr_workgroup_id_z
uint32_t granulated_lds_size
uint32_t enable_sgpr_private_segment_size
uint32_t enable_sgpr_private_segment_buffer
uint16_t amd_machine_version_minor
uint64_t kernarg_segment_byte_size
uint32_t float_mode_denorm_32
uint64_t control_directives[16]
uint32_t kernel_code_properties_reserved2
uint64_t kernel_code_prefetch_byte_size
uint16_t reserved_sgpr_count
uint32_t enable_exception_ieee_754_fp_division_by_zero
uint16_t amd_machine_version_stepping
uint64_t runtime_loader_kernel_symbol
uint32_t enable_exception_int_divide_by_zero
uint32_t enable_sgpr_flat_scratch_init
uint32_t float_mode_round_16_64
int64_t kernel_code_prefetch_byte_offset
uint16_t reserved_vgpr_first
uint32_t enable_sgpr_grid_workgroup_count_z
uint32_t enable_sgpr_kernarg_segment_ptr

Generated on Mon Jul 10 2023 14:24:31 for gem5 by doxygen 1.9.7