Grafik Komit

8920 Melakukan

Penulis SHA1 Pesan Tanggal
Ranjith Ramakrishnan daffcdb930 SWDEV-383221 - Set the default value of ROCM_HEADER_WRAPPER_WERROR to OFF
Using wrapper header files will result in #warning message by default

Change-Id: I8941a96bdc1b921a7646ccb353130cb283957ff8
2023-05-08 16:56:52 -07:00
Ranjith Ramakrishnan 9265322297 SWDEV-383221 - Set the default value of ROCM_HEADER_WRAPPER_WERROR to OFF
Using wrapper header files will result in #warning message by default

Change-Id: If782c70db5a02e0143eca750c6a72803d39ca837
2023-05-08 19:29:14 -04:00
Ranjith Ramakrishnan 245eafea4c SWDEV-383221 - Set the default value of ROCM_HEADER_WRAPPER_WERROR to OFF
Using wrapper header files will result in #warning message by default

Change-Id: Ib8a05d11f2391dfcdac8601da26e1096821cd555
2023-05-08 16:28:19 -07:00
Sam Wu 57b3fcde51 add sphinx configurations
Change-Id: I1a66a02b18fb699415a87a6473eb72c097a13b5f
2023-05-08 15:58:01 -06:00
coleramos425 8c173446d2 Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-08 11:56:49 -05:00
coleramos425 f499408c7b Fix join_prof() call for --roof-only mode
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-08 11:55:45 -05:00
coleramos425 298271e1d0 Update mean timestamp calculation
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-08 11:25:05 -05:00
Graham Sider 54136f60a0 kfdtest: Add Assembler::RunAssembleBuf overload
Overload Assembler::RunAssembleBuf to take in an extra Gfxv parameter.
Using this overload will temporarily set the target ASIC to Gfxv before
calling RunAssemble, and copy back the original MCPU literal upon
completion. The copy to reset the original MCPU in this case is safe as
the MCPU length is always known.

This will be useful in multi-device test cases whereby the devices are
not necessarily the same gfx version. The overload is explicitly for the
RunAssembleBuf wrapper rather than RunAssemble to ensure the default
MCPU is always reset independent of errors in RunAssemble.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: I7fe5a962876314b6df32e4b7160174949d98f9e3
2023-05-08 11:35:32 -04:00
Sam Wu 1335d19020 add configs for read the docs
add handbook, user, install, and integration guides

Change-Id: I996f6909f4fdf76910981c0224f5a0266907e27a

remove old documentation steps

Change-Id: Icfad09926e67a2dfa1de0e182fc3cd534f0448f7

formatting fixes

Change-Id: I704bbbbf6ad384178f804e4a3f5e621f9c3d33b9
2023-05-05 15:44:34 -06:00
coleramos425 a9d82759ca Implement custom merge utility for rocprof
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-05 15:07:20 -05:00
Giovanni LB edbac98594 SWDEV-380635: Added metrics in src/core for gfx11
Change-Id: I4e2003a6bff8ce06ecd3c8e07354e67f053683b5
2023-05-05 15:39:30 -04:00
Kiumars Sabeti 997c771723 SWDEV-380635: adding gfx11 architecture to rocprofiler which includes navi31 and navi32 for now
Change-Id: Ib2a93a34688471c82b5db0dc10e8da58452dba21
2023-05-05 15:39:18 -04:00
Giovanni LB ba620ee7c6 SWDEV-389947: Fixing GPU memory being allocated for every kernel. Reduced python memory usage.
Change-Id: I74d31581653e53e529f148b272f5217a1edcf288
2023-05-05 11:26:34 -04:00
Ammar ELWazir 18110d146e SWDEV-398583: Fix for ATT AQLProfile lib Path in rocprofv2
Change-Id: I2b50916654ac5b1abcc9c37a267911cbf9f471a8
2023-05-05 07:14:09 +00:00
fei.zheng 2e0a603930 format code
Signed-off-by: fei.zheng <fei.zheng@amd.com>
2023-05-04 11:46:34 -06:00
fei.zheng 7d73f4abc6 remove saved df files from verbose
Signed-off-by: fei.zheng <fei.zheng@amd.com>
2023-05-03 17:50:39 -06:00
fei.zheng 1104371651 add option to save dfs
Signed-off-by: fei.zheng <fei.zheng@amd.com>
2023-05-03 17:45:29 -06:00
fei.zheng dfe74057c1 allow to specify the maximum number of kernels shown
Signed-off-by: fei.zheng <fei.zheng@amd.com>
2023-05-03 11:46:17 -06:00
Cole Ramos b60e8335c7 Merge pull request #122 from feizheng10/fix_decimal
CLI: fix decimal doesn't work for single run
2023-05-03 11:20:31 -05:00
fei.zheng ce1dcba672 fix decimal doesn't work for single run
Signed-off-by: fei.zheng <fei.zheng@amd.com>
2023-05-03 10:04:15 -06:00
coleramos425 ab34836d92 Merge branch 'main' of github.com:AMDResearch/omniperf into dev 2023-05-03 10:48:25 -05:00
Ammar ELWazir 9e62e066fe V1/V2 API Library Separation
V1 library will be supported as librocprofiler64.so and V2 will be supported as librocprofiler64v2.so and headers will be rocprofiler.h for V1 and v2/rocprofiler.h for v2

Change-Id: Ibe5bdbf2f79f0175342c648e917ae77918186604
2023-05-02 22:44:43 -04:00
Cole Ramos 1bd0e4e33a Merge pull request #120 from AMDResearch/imp
switch to use of importlib to avoid imp module deprecation (fixes #119)
2023-05-02 14:41:23 -07:00
coleramos425 b3df8b9032 Formatting cruft
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-02 16:34:07 -05:00
coleramos425 c0ea032cf6 Fixing my CI mistake Karl inherited when branching
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-02 16:25:32 -05:00
coleramos425 e23a4dd9c5 Enable random port feature in standalone GUI (#111)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-02 16:20:33 -05:00
Cole Ramos 22edc18eb4 Merge pull request #121 from AMDResearch/agg-l2-per-channel
Agg L2 per channel stats
2023-05-02 14:09:19 -07:00
coleramos425 2babc6baaa Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-02 15:13:19 -05:00
coleramos425 0305767b77 Restore CI functionality
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-02 15:06:11 -05:00
coleramos425 f114440c6f Implement Aggregated L2 Channel stats in CLI+GUI (#104)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-02 15:02:20 -05:00
coleramos425 622d9b6227 Add support for Std Dev in CLI parsing logic (#104)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-02 15:00:42 -05:00
coleramos425 9abbe5049d Update parsed mongo queries
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-02 14:57:55 -05:00
gobhardw 9dd1a12468 Fixing mem leak in perfetto plugin
Change-Id: I4a39e3d8c8796cecf01322cd963359c1788d6d1c
2023-05-02 17:48:52 +05:30
Bill(Shuzhou) Liu 8e686daa7d Rebuild librdc_ras.so on RHEL7
Build the library on lower OS for compatibility.

Change-Id: I24c5670d98131b739753e66fdd49b2e69759073c
2023-04-28 14:00:11 -05:00
gobhardw 591e3d734b Ignoring commented lines in input for profiling
Change-Id: I31c089024473f0b22e26d54d6db7e5818a064a0d
2023-04-28 10:13:04 -04:00
Graham Sider 7a4c9273d7 rocrtst: Move kernel object loading outside of loops
Negative queue validation tests were doing many redundant from-file
kernel object loads in a loop. This was creating many simulataneous open
file handles within many dynamically allocated CodeObject objects. While
the CodeObject class implements RAII on the file handles to cleanup on
destruction, clear_code_object() only gets called on the destruction of
the TestBase-derived test objects (these being a suite abstraction).

Due to this we were hitting file open() EMFILE errors (too many open
files) in gfx94x CPX mode. Move LoadKernelFromObjFile outside of the
test loops and clear_code_object() for each test on each agent.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: I6f9d23fd122720c49a58c22698f097906d2fc97c
2023-04-27 16:16:12 -04:00
David Yat Sin a180c9ee78 Add env var to override SRAM ECC
Add HSA_ENABLE_SRAMECC environment variable that can be used to
override SRAM ECC mode reported by KFD

Change-Id: I2b95511820a2d3d146a76b03070659c0695b61fd
2023-04-27 16:16:05 -04:00
David Yat Sin f024d21e3d Add query for number of XCCs per agent
Change-Id: I4b694b4904ba0326c998356388a62c19a972a7ff
2023-04-27 16:15:59 -04:00
Mike Li 46b667e530 Return failure with any IMAGE attribute for gfx940
The gfx940 does not support IMAGE instructions. Any get_info with
IMAGE attributes should return failure.

Signed-off-by: Mike Li <Tianxinmike.Li@amd.com>
Change-Id: I12005628f92780f551ab6f8b41526c66b54c6a59
2023-04-27 16:15:51 -04:00
Mike Li d7fa654338 Do not use the function part of the location_id
The function IDs used to be 0 on previous asics but on gfx94x and newer
asics, these bits are set. These bits are used by user applications to
uniquely identify the locations of GPU nodes. These exta bits break
hwloc and are not needed for rocrtst.

Signed-off-by: Mike Li <Tianxinmike.Li@amd.com>
Signed-off-by: David Yat Sin <David.YatSin@amd.com>
Change-Id: I1202f504645b0662d009b9c0926eebb7ddc08d73
2023-04-27 16:15:43 -04:00
Mike Li 9554e95de0 Scratch memory changes to support multi-xcc
Change-Id: I115ba4cfe250c59cb7421217cfe0fad6302f25b3
2023-04-27 16:15:30 -04:00
Laurent Morichetti f31b312611 Update the trap handler for gfx940
gfx940 uses ttmp11 to hold the queue packet index so the first level
trap handler uses ttmp13 instead to save ib_sts.

Repurpose ttmp11[31] to mean that the ttmps are initialized. The issue
was that the debugger could not tell whether ttmp6 was written by the
trap handler when determining the stop reason.

If ttmp11[31]=0, then the trap handler has not been executed and ttmp6
should be assumed to be 0.  If ttmp11[31]=1, then ttmp6 holds the
trap_id, if an s_trap instruction caused the exception.

Signed-off-by: Laurent Morichetti <laurent.morichetti@amd.com>
Signed-off-by: Lancelot Six <lancelot.six@amd.com>

Change-Id: I9af903abae044b9ec530306229caf3b883f3ee46
2023-04-27 16:15:14 -04:00
Mike Li de4d1ce424 Add gfx940 to AmdHsaCode
Signed-off-by: Mike Li <Tianxinmike.Li@amd.com>
Change-Id: Ib4f7c801c3d3bac9a04c880c5bf86b72bfa3404f
2023-04-27 16:09:26 -04:00
Mike Li bd98a1e5bf Added gfx940 ISA
Signed-off-by: Mike Li <Tianxinmike.Li@amd.com>
Change-Id: Icb1830fe186abc69fe7ee709b7f12b882cab9e87
2023-04-27 16:08:58 -04:00
Graham Sider 92f3d4a458 kfdtest: Fix new shader directives
LLVM MC does not seem to accept multi-line conditionals. This may be
fixable in the future with macros. The Aqua Vanjaram shader spec states
that while buffer_invl2 has been replaced by buffer_inv, the former may
still be used for compatibility. However, this does not seem to be
implemented. For now, fix conditional.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: I7f8b64c96055371d7e0090b758d2cfd2a37ecd3c
2023-04-27 10:48:44 -04:00
Karl W Schulz 86f8f4a701 switch to use of importlib to avoid imp module deprecation (fixes #119)
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
2023-04-27 07:53:22 -05:00
Karl W. Schulz 634222e45d noop: just fixing a typo 2023-04-26 15:00:49 -05:00
Giovanni LB 40619ac19c Navi21 support for ATT
Change-Id: I24f4a9ca6df805ec05163863490280f8f0a40930
2023-04-25 12:18:36 -04:00
Giovanni LB 36108aac55 SWDEV-391608: Changed AQL-ATT default location. Added ATT env-variable to Readme.
Change-Id: I6256c8d539284562c547ae5349a6b8c022fe2b88
2023-04-25 12:17:41 -04:00
gobhardw 40bfdcade0 SWDEV-388249: Memory leak fix
Change-Id: I68c62ee42e6d37fb85a1a8aa0d7a2cbda6431a8b
2023-04-25 12:12:43 +05:30