Using PC sampling#
PC (Program Counter) sampling service for GPU profiling is a profiling technique to periodically sample the program counter during GPU kernel execution. PC sampling helps in understanding code execution patterns and identifying hotspot(s).
Here are the benefits of using PC sampling:
Identify performance bottlenecks
Understand kernel execution behavior
Analyze code coverage
Find heavily executed code paths
To try out the PC sampling feature, you can use the command-line tool rocprofv3
or the ROCprofiler-SDK library on ROCm 6.4 or later.
Note
PC sampling is ONLY supported on AMD GPUs with architectures gfx90a and later.
PC sampling availability and configuration#
To check if the GPU supports PC sampling, use:
rocprofv3 -L
Or
rocprofv3 --list-avail
The output lists if rocprofv3
supports PC sampling on the GPU and the supported configuration.
GPU:0
NAME:gfx90a
configs:
Method :host_trap
Unit :time
Min_Interval :1
Max_Interval :18446744073709551615
Flags :none
The preceding output shows that the GPU supports PC sampling with the ROCPROFILER_PC_SAMPLING_METHOD_HOST_TRAP
method and the ROCPROFILER_PC_SAMPLING_UNIT_TIME
unit. The minimum and maximum intervals are also displayed.
Note
Important firmware fixes to host-trap and stochastic PC-sampling for AMD Instinct MI300X have been made in ROCm 7.0. To ensure that you have the latest fixes, check if you have the correct firmware versions installed:
For host-trap PC-sampling on MI300X: PSP TOS Firmware >= version 00.36.02.59 or 0x00360259 For stochastic PC-sampling on MI300X as described in the following section: MEC Firmware feature version: 50, firmware version >= 0x0000001a
To check the firmware versions, use:
# To check PSP TOS Firmware:
sudo cat /sys/kernel/debug/dri/0/amdgpu_firmware_info | grep SOS
# To check MEC Firmware:
sudo cat /sys/kernel/debug/dri/1/amdgpu_firmware_info | grep MEC
Based on the available PC-sampling configurations, use the following command to profile the application using PC-sampling:
rocprofv3 --pc-sampling-beta-enabled --pc-sampling-method host_trap --pc-sampling-unit time --pc-sampling-interval 1 --output-format csv -- <application_path>
The preceding command enables PC sampling with the host_trap
method, time
unit, and an interval of 1
μs (microsecond). Replace <application_path>
with the path to the application you want to profile.
This generates two files, agent_info.csv
and pc_sampling_host_trap.csv
. Both files are prefixed with the process ID.
Here are the contents of pc_sampling_host_trap.csv
file generated for MatrixTranspose sample application:
Sample_Timestamp |
Exec_Mask |
Dispatch_Id |
Instruction |
Instruction_Comment |
Correlation_Id |
---|---|---|---|---|---|
3464444413017201 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413017201 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413018481 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413018481 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413018481 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413018481 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413018481 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413018481 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413019601 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413019761 |
65535 |
1 |
s_load_dword s8, s[4:5], 0x24 |
1 |
|
3464444413019761 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413019761 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413019761 |
65535 |
1 |
s_load_dword s8, s[4:5], 0x24 |
1 |
|
3464444413019761 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413019761 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413020881 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413020881 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413020881 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413020881 |
65535 |
1 |
s_waitcnt lgkmcnt(0) |
1 |
|
3464444413020881 |
65535 |
1 |
v_addc_co_u32_e32 v5, vcc, v1, v5, vcc |
1 |
|
3464444413020881 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413020881 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413020881 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413020881 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413021041 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413020881 |
65535 |
1 |
v_bfe_u32 v0, v0, 10, 10 |
1 |
|
3464444413021041 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413021041 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413021041 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413021041 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413021041 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413021041 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022001 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413022001 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022001 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022001 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022001 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022001 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413022001 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022001 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413022001 |
65535 |
1 |
s_waitcnt lgkmcnt(0) |
1 |
|
3464444413022161 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022161 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413022161 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022161 |
65535 |
1 |
s_load_dword s8, s[4:5], 0x24 |
1 |
|
3464444413022161 |
65535 |
1 |
global_store_dword v[0:1], v3, off |
1 |
|
3464444413022161 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022161 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022161 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413022161 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022161 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022161 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413022161 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022321 |
65535 |
1 |
s_load_dwordx4 s[0:3], s[4:5], 0x0 |
1 |
|
3464444413022161 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413022321 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413022161 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413023281 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413023281 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413023281 |
65535 |
1 |
v_ashrrev_i32_e32 v1, 31, v0 |
1 |
|
3464444413024561 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413023281 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413024561 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413023761 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413026321 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413024401 |
65535 |
1 |
global_store_dword v[0:1], v3, off |
1 |
|
3464444413027121 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413025041 |
65535 |
1 |
v_add_co_u32_e32 v0, vcc, s0, v0 |
1 |
|
3464444413027761 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413025361 |
65535 |
1 |
s_endpgm |
1 |
|
3464444413027601 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413026321 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413028401 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413026481 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413028881 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413026641 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413028401 |
65535 |
1 |
s_load_dword s8, s[4:5], 0x24 |
1 |
|
3464444413027281 |
65535 |
1 |
s_waitcnt vmcnt(0) |
1 |
|
3464444413029681 |
65535 |
1 |
s_endpgm |
1 |
For description of the fields in the output file, see PC sampling fields.
If you find the Instruction_Comment
field in the output file to be empty, populate this field by compiling your application with debug symbols.
Enabling debug symbols while compiling the application maps back to the source line. This helps in understanding the code execution pattern and hotspots.
Sample_Timestamp |
Exec_Mask |
Dispatch_Id |
Instruction |
Instruction_Comment |
Correlation_Id |
---|---|---|---|---|---|
54155306462675 |
65535 |
1 |
s_waitcnt lgkmcnt(0) |
/opt/rocm/include/hip/amd_detail/amd_hip_runtime.h:275 |
1 |
54155306462715 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306462755 |
65535 |
1 |
s_endpgm |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:45 |
1 |
54155306462755 |
65535 |
1 |
s_endpgm |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:45 |
1 |
54155306462955 |
65535 |
1 |
s_endpgm |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:45 |
1 |
54155306463035 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306463235 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306463315 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306463515 |
65535 |
1 |
s_endpgm |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:45 |
1 |
54155306463755 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306463875 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306464075 |
65535 |
1 |
v_mov_b32_e32 v2, s4 |
/opt/rocm/include/hip/amd_detail/amd_hip_runtime.h:275 |
1 |
54155306464155 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306464155 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306464275 |
65535 |
1 |
s_endpgm |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:45 |
1 |
54155306464395 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306464515 |
65535 |
1 |
s_waitcnt lgkmcnt(0) |
/opt/rocm/include/hip/amd_detail/amd_hip_runtime.h:275 |
1 |
54155306464555 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306464595 |
65535 |
1 |
s_waitcnt vmcnt(0) |
/opt/rocm-6.4.0/share/hip/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp:44 |
1 |
54155306464595 |
65535 |
1 |
v_mov_b32_e32 v2, s6 |
/opt/rocm/include/hip/amd_detail/amd_hip_runtime.h:275 |
1 |
54155306464595 |
65535 |
1 |
s_waitcnt lgkmcnt(0) |
/opt/rocm/include/hip/amd_detail/amd_hip_runtime.h:275 |
1 |
The preceding output shows the Instruction_Comment
field populated with the source-line information.
PC sampling fields#
Here are the fields in the output file generated by PC sampling:
Sample_Timestamp
: Timestamp when sample is generatedExec_Mask
: Active SIMD lanes when sampledDispatch_Id
: Originating kernel dispatch IDInstruction
: Assembly instruction such ass_load_dword s8, s[1:2], 0x10
Instruction_Comment
: Instruction comment that maps back to the source-line if debug symbols were enabled when application was compiledCorrelation_Id
: API launch call ID that matches dispatch ID
To dump samples in a more comprehensive format, use JSON through
--output-format json
:
rocprofv3 --pc-sampling-beta-enabled --pc-sampling-method host_trap --pc-sampling-unit time --pc-sampling-interval 1 --output-format json -- <application_path>
The preceding command generates a JSON file with the comprehensive output. Here is a trimmed down output with multiple records:
{
"pc_sample_host_trap": [
{
"record": {
"hw_id": {
"chiplet": 0,
"wave_id": 0,
"simd_id": 2,
"pipe_id": 0,
"cu_or_wgp_id": 1,
"shader_array_id": 0,
"shader_engine_id": 2,
"workgroup_id": 0,
"vm_id": 3,
"queue_id": 2,
"microengine_id": 1
},
"pc": {
"code_object_id": 1,
"code_object_offset": 20228
},
"exec_mask": 18446744073709551615,
"timestamp": 51040126667689,
"dispatch_id": 1,
"corr_id": {
"internal": 1,
"external": 0
},
"wrkgrp_id": {
"x": 182,
"y": 0,
"z": 0
},
"wave_in_grp": 1
},
"inst_index": 0
},
{
"record": {
"hw_id": {
"chiplet": 0,
"wave_id": 0,
"simd_id": 2,
"pipe_id": 0,
"cu_or_wgp_id": 0,
"shader_array_id": 0,
"shader_engine_id": 2,
"workgroup_id": 0,
"vm_id": 3,
"queue_id": 2,
"microengine_id": 1
},
"pc": {
"code_object_id": 1,
"code_object_offset": 20236
},
"exec_mask": 18446744073709551615,
"timestamp": 51040126667689,
"dispatch_id": 1,
"corr_id": {
"internal": 1,
"external": 0
},
"wrkgrp_id": {
"x": 158,
"y": 0,
"z": 0
},
"wave_in_grp": 2
},
"inst_index": 1
}
]
}
For description of the fields in the JSON output, see Output file fields.
An Arbitrary Host-Trap PC Sampling Skid#
Host-Trap PC sampling is a software-based technique that utilizes a background kernel thread to periodically interrupt running waves in order to capture the program counter (PC). This method is effective for gathering performance data without requiring specialized hardware to snapshot the waves. However, it has limitations due to the potential delay between when a wave receives an interrupt and when it processes the interrupt to capture the PC. This delay can lead to a sampling skid, where the PC samples may be attributed to instructions that are up to two instructions away from the actual source of latency. This results in a non-precise intra-kernel sampling method.
When analyzing an application profile generated by host-trap PC sampling, developers should consider not only the reported most costly instruction but also the instructions immediately preceding or following it. If the costly instruction is near a branch instruction, it is important to also consider the instruction targeted by the branch and the one immediately following it.
To address the limitations of host-trap sampling, the hardware-based stochastic PC sampling method has been developed. This method provides precise intra-kernel sampling with zero sampling skid, offering more accurate performance insights.
It is important to note that the skid issue inherent in host-trap PC sampling will not be resolved in its current form. Therefore, users are encouraged to adopt stochastic PC sampling, starting with the GFX942 architecture, to achieve more precise performance profiling.
Hardware-Based (Stochastic) PC Sampling Method#
The new ROCPROFILER_PC_SAMPLING_METHOD_STOCHASTIC
has been introduced for gfx942 architecture.
It employs a specific hardware for probing waves actively running on GPU.
Beside information already provided with ROCPROFILER_PC_SAMPLING_METHOD_HOST_TRAP
useful for determining hot-spots within the kernel,
it delivers additional information that tells whether a sampled wave issued an instruction represented with particular PC.
If not, it provides the reason for not issuing the instruction (stall reason).
This type of information is particularly useful for understanding stalls during the kernel execution.
To use this method on gfx942, we recommend listing available PC sampling configurations to verify if the latest ROCm stack is installed on the system by running:
rocprofv3 -L
Output similar to the following indicates that the ROCPROFILER_PC_SAMPLING_METHOD_STOCHASTIC
method is available:
GPU:1
NAME:gfx942
configs:
Method :stochastic
Unit :cycle
Min_Interval :256
Max_Interval :2147483648
Flags :interval pow2
Please note that on gfx942, ROCPROFILER_PC_SAMPLING_METHOD_STOCHASTIC requires intervals to be specified in cycles, whose values are powers of 2
To profile a gfx942 accelerated application with ROCPROFILER_PC_SAMPLING_METHOD_STOCHASTIC
PC sampling, one can use the following command:
rocprofv3 --pc-sampling-beta-enabled --pc-sampling-method stochastic --pc-sampling-unit cycles --pc-sampling-interval 1048576 --output-format csv, json -- <application_path>
The previous command serializes samples in both CSV and JSON output formats in the pc_sampling_stochastic.csv
and out_results.json
files, respectively.
Comparing the pc_sampling_stochastic.csv
to pc_sampling_host_trap
from previous section, one can notice that the ROCPROFILER_PC_SAMPLING_METHOD_STOCHASTIC
method
generates additional fields:
- Wave_Issued_Instruction
: Indicates whether the wave issued an instruction (value 1) represented with particular PC or not (value 0)
- Instruction_Type
: If the value of Wave_Issued_Instruction
is 1, this fields indicates the type of the issued instruction. Otherwise, this fields irrelevant.
- Stall_Reason
: If the value of Wave_Issued_Instruction
is 0, this fields indicates the reason for not issuing the instruction (stall reason). Otherwise, this field is irrelevant.
- Wave_Count
: Total number of waves actively running on a compute unit when the sample was generated.
Sample_Timestamp |
Exec_Mask |
Dispatch_Id |
Instruction |
Instruction_Comment |
Correlation_Id |
Wave_Issued_Instruction |
Instruction_Type |
Stall_Reason |
Wave_Count |
---|---|---|---|---|---|---|---|---|---|
390705261841337 |
18446744073709551615 |
24 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
24 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390705261924637 |
18446744073709551615 |
29 |
v_max_i32_e32 v1, v2, v0 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:77 |
29 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
6 |
390705694732429 |
18446744073709551615 |
53 |
v_mad_u64_u32 v[0:1], s[2:3], v0, s2, v[2:3] |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:80 |
53 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
6 |
390705694744189 |
18446744073709551615 |
54 |
v_lshl_add_u64 v[0:1], s[4:5], 0, v[0:1] |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
54 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
4 |
390705694769549 |
18446744073709551615 |
56 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
56 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390705694772089 |
18446744073709551615 |
56 |
s_waitcnt lgkmcnt(0) |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
56 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390705694810449 |
18446744073709551615 |
58 |
v_cmp_gt_i32_e32 vcc, s2, v1 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:94 |
58 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
3 |
390705694820489 |
18446744073709551615 |
59 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
59 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390705694840850 |
18446744073709551615 |
60 |
s_and_b32 s5, s4, 0xffff |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
60 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_SCALAR |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
5 |
390705694856630 |
18446744073709551615 |
61 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
61 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706112944694 |
18446744073709551615 |
65 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
65 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
7 |
390706112965404 |
18446744073709551615 |
66 |
global_store_dword v[0:1], v2, off |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
66 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_ALU_DEPENDENCY |
3 |
390706112966284 |
18446744073709551615 |
66 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
66 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706112966644 |
18446744073709551615 |
66 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
66 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
3 |
390706112967404 |
18446744073709551615 |
66 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
66 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706112971414 |
18446744073709551615 |
66 |
s_load_dwordx4 s[4:7], s[0:1], 0x0 |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
66 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_SCALAR |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
5 |
390706112984885 |
18446744073709551615 |
67 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
67 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706112988655 |
18446744073709551615 |
67 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
67 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113000775 |
18446744073709551615 |
68 |
v_add_u32_e32 v0, s3, v0 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:128 |
68 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
5 |
390706113004375 |
18446744073709551615 |
68 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
68 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113053815 |
18446744073709551615 |
69 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
69 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
7 |
390706113059125 |
18446744073709551615 |
69 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
69 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706113080805 |
18446744073709551615 |
70 |
s_load_dwordx4 s[4:7], s[0:1], 0x0 |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
70 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_SCALAR |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
3 |
390706113097725 |
18446744073709551615 |
71 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
71 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
3 |
390706113101805 |
18446744073709551615 |
71 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
71 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113111775 |
18446744073709551615 |
72 |
v_sub_f32_e32 v4, v2, v3 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
72 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
5 |
390706113115735 |
18446744073709551615 |
72 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
72 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113134725 |
18446744073709551615 |
73 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
73 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
7 |
390706113147605 |
18446744073709551615 |
74 |
s_waitcnt lgkmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:97 |
74 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113149485 |
18446744073709551615 |
74 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
74 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113153735 |
18446744073709551615 |
74 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
74 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113179326 |
18446744073709551615 |
76 |
s_waitcnt lgkmcnt(0) |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
76 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
2 |
390706113184086 |
18446744073709551615 |
76 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
76 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113184406 |
18446744073709551615 |
76 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
76 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113206736 |
18446744073709551615 |
77 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
77 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
10 |
390706113209216 |
18446744073709551615 |
77 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
77 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
11 |
390706113220016 |
18446744073709551615 |
78 |
s_load_dword s4, s[0:1], 0x2c |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
78 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_NO_INSTRUCTION_AVAILABLE |
1 |
390706113221566 |
18446744073709551615 |
78 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
78 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113227816 |
18446744073709551615 |
78 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
78 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113234976 |
18446744073709551615 |
79 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
79 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113235016 |
18446744073709551615 |
79 |
s_load_dwordx2 s[0:1], s[0:1], 0x10 |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
79 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_SCALAR |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
3 |
390706113236806 |
18446744073709551615 |
79 |
s_and_saveexec_b64 s[2:3], vcc |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:113 |
79 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_ALU_DEPENDENCY |
3 |
390706113250926 |
18446744073709551615 |
80 |
s_waitcnt lgkmcnt(0) |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
80 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
1 |
390706113253456 |
18446744073709551615 |
80 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
80 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113255496 |
18446744073709551615 |
80 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
80 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706113257566 |
18446744073709551615 |
80 |
v_add_f32_e32 v2, 1.0, v2 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
80 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
4 |
390706113270176 |
18446744073709551615 |
81 |
s_waitcnt lgkmcnt(0) |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
81 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
3 |
390706113278256 |
18446744073709551615 |
81 |
s_load_dword s2, s[0:1], 0x18 |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
81 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_SCALAR |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
8 |
390706113292776 |
18446744073709551615 |
82 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
82 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
3 |
390706113301126 |
18446744073709551615 |
83 |
s_waitcnt lgkmcnt(0) |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
83 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
1 |
390706113301606 |
18446744073709551615 |
83 |
s_and_saveexec_b64 s[2:3], vcc |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:113 |
83 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_ALU_DEPENDENCY |
3 |
390706113303846 |
18446744073709551615 |
83 |
s_and_saveexec_b64 s[2:3], vcc |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:113 |
83 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_ALU_DEPENDENCY |
3 |
390706113305086 |
18446744073709551615 |
83 |
v_lshlrev_b64 v[0:1], 2, v[0:1] |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
83 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
3 |
390706113317256 |
18446744073709551615 |
84 |
v_div_fmas_f32 v3, v3, v6, v7 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
84 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
5 |
390706113318166 |
18446744073709551615 |
84 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
84 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706113336687 |
18446744073709551615 |
85 |
global_load_dword v2, v[2:3], off |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
85 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_ALU_DEPENDENCY |
11 |
390706113351087 |
18446744073709551615 |
86 |
s_mul_i32 s2, s2, s5 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:93 |
86 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_SCALAR |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
3 |
390706113352487 |
18446744073709551615 |
86 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
86 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113369607 |
18446744073709551615 |
87 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
87 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706113373647 |
18446744073709551615 |
87 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
87 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113387017 |
18446744073709551615 |
88 |
s_waitcnt lgkmcnt(0) |
/usr/include/hip/amd_detail/amd_hip_runtime.h:275 |
88 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
1 |
390706113390207 |
18446744073709551615 |
88 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
88 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113408977 |
18446744073709551615 |
89 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
89 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706113409057 |
18446744073709551615 |
89 |
v_add_f32_e32 v2, v2, v3 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
89 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
10 |
390706113411607 |
18446744073709551615 |
89 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
89 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
9 |
390706113411737 |
18446744073709551615 |
89 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
89 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
7 |
390706113412777 |
18446744073709551615 |
89 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
89 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
7 |
390706113415847 |
18446744073709551615 |
89 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
89 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
9 |
390706113424217 |
18446744073709551615 |
90 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
90 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113443127 |
18446744073709551615 |
91 |
v_add_f32_e32 v2, -1.0, v2 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
91 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
2 |
390706113444857 |
18446744073709551615 |
91 |
v_add_f32_e32 v3, -1.0, v3 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
91 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
3 |
390706113459367 |
18446744073709551615 |
92 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
92 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706113459767 |
18446744073709551615 |
92 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
92 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706113462927 |
18446744073709551615 |
92 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
92 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706113480097 |
18446744073709551615 |
93 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
93 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
15 |
390706113484087 |
18446744073709551615 |
93 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
93 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
7 |
390706113496167 |
18446744073709551615 |
93 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
93 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706113500167 |
18446744073709551615 |
93 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
93 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
9 |
390706113506057 |
18446744073709551615 |
93 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
93 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
14 |
390706113506327 |
18446744073709551615 |
93 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
93 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706113508577 |
18446744073709551615 |
93 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
93 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
17 |
390706113522058 |
18446744073709551615 |
93 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
93 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
15 |
390706113561378 |
18446744073709551615 |
94 |
s_waitcnt lgkmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:97 |
94 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
3 |
390706113573138 |
18446744073709551615 |
95 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
95 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706526501642 |
18446744073709551615 |
112 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
112 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706526582893 |
18446744073709551615 |
117 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:82 |
117 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
8 |
390706526594683 |
18446744073709551615 |
118 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
118 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706526629813 |
18446744073709551615 |
120 |
s_waitcnt lgkmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:131 |
120 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706526629803 |
18446744073709551615 |
120 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
120 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706526633683 |
18446744073709551615 |
120 |
v_mul_f32_e32 v7, v3, v6 |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
120 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
4 |
390706526634933 |
18446744073709551615 |
120 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
120 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706526665053 |
18446744073709551615 |
122 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
122 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
4 |
390706526677283 |
18446744073709551615 |
123 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
123 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
6 |
390706526695733 |
18446744073709551615 |
124 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:133 |
124 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706526809694 |
18446744073709551615 |
126 |
v_and_b32_e32 v2, 0x7fffffff, v2 |
/opt/rocm-6.4.0/lib/llvm/lib/clang/19/include/__clang_hip_math.h:427 |
126 |
1 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT |
5 |
390706526810014 |
18446744073709551615 |
126 |
s_waitcnt vmcnt(0) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:99 |
126 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
390706526821284 |
18446744073709551615 |
127 |
s_waitcnt vmcnt(1) |
/home/vlaindic/git/rocprofiler-sdk-internal/tests/bin/vector-operations/vector-ops.cpp:116 |
127 |
0 |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_NO_INST |
ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_WAITCNT |
5 |
Similarly, ROCPROFILER_PC_SAMPLING_METHOD_STOCHASTIC
method delivers additional information to every sample in the JSON output.
The following snippet shows one sample from out_results.json
file.
{
"record": {
"flags": {
"has_mem_cnt": 0
},
"hw_id": {
"chiplet": 4,
"wave_id": 0,
"simd_id": 2,
"pipe_id": 3,
"cu_or_wgp_id": 1,
"shader_array_id": 0,
"shader_engine_id": 3,
"workgroup_id": 0,
"vm_id": 3,
"queue_id": 2,
"microengine_id": 1
},
"pc": {
"code_object_id": 2,
"code_object_offset": 13880
},
"exec_mask": 18446744073709551615,
"timestamp": 390705261924637,
"dispatch_id": 29,
"corr_id": {
"internal": 29,
"external": 0
},
"wrkgrp_id": {
"x": 9,
"y": 489,
"z": 0
},
"wave_in_grp": 0,
"wave_issued": 1,
"inst_type": "ROCPROFILER_PC_SAMPLING_INSTRUCTION_TYPE_VALU",
"wave_cnt": 6,
"snapshot": {
"stall_reason": "ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_OTHER_WAIT",
"dual_issue_valu": 0,
"arb_state_issue_valu": 1,
"arb_state_issue_matrix": 0,
"arb_state_issue_lds": 0,
"arb_state_issue_lds_direct": 0,
"arb_state_issue_scalar": 0,
"arb_state_issue_vmem_tex": 0,
"arb_state_issue_flat": 0,
"arb_state_issue_exp": 0,
"arb_state_issue_misc": 0,
"arb_state_issue_brmsg": 0,
"arb_state_stall_valu": 0,
"arb_state_stall_matrix": 0,
"arb_state_stall_lds": 0,
"arb_state_stall_lds_direct": 0,
"arb_state_stall_scalar": 0,
"arb_state_stall_vmem_tex": 0,
"arb_state_stall_flat": 0,
"arb_state_stall_exp": 0,
"arb_state_stall_misc": 0,
"arb_state_stall_brmsg": 0
}
},
"inst_index": 1
},
Fields starting with arb_state_
are of particular interest as they indicate the state of the arbiter at the time of sampling.
Namely, arb_state_issue_
fields indicate what type of instructions arbiter issued at the time of sampling.
On the other hand, arb_state_stall_
fields indicate what type of instructions were stalled at the time of sampling.
This information is useful for understanding how many instructions per cycle (IPC) are issued.