Grafik Komit

8920 Melakukan

Penulis SHA1 Pesan Tanggal
gobhardw 36353266bf Fixing broken profiler v2 from build directory
Change-Id: Ice4f49519953a4cce0ac116535f402ff94adf9d1
2023-05-18 15:03:48 +05:30
Charis Poag c3a095a180 [SWDEV-398070] Adding logging to ROCm SMI (by default off)
Updates:
    * [rocm-smi] Provide a thread-safe logging feature
    * [rocm-smi] Adding logrotation into install/upgrade/remove
      scripts
    * [rocm-smi] Updated cmake lists to include rocm_smi_logger
    * [rocm-smi] Updated DEB/RPM install/remove logging file &
      folder with all users having r/w privledges for
      /var/log/rocm_smi_lib/ROCm-SMI-lib.log
    * [rocm-smi] Added ability to do a glob search for multiple files
      (globFileExists), assists doing file searches with * strings
    * [rocm-smi] Added ability to log system details when RSMI_LOGGING
      is turned on (getSystemDetails())
    * [rocm-smi] Added logging to provide which ROCm API is being called
      when RSMI_LOGGING is on
    * [rocm-smi] Added logging to provide SYSFS path and read value,
      when RSMI_LOGGING is on. Provides error reponse on failure.
    * [rocm-smi] Added logging to provide SYSFS path and read value,
      when RSMI_LOGGING is on. Provides error reponse on failure.
    * [rocm-smi] Added environment variable RSMI_LOGGING to control
      when logging is enabled or disabled. By default, by not
      setting this env. variable, logging is turned off. When
      setting RSMI_LOGGING=<any value>, logging is enabled
      which is placed in /var/log/rocm_smi_lib/ROCm-SMI-lib.log file.
      Setting RSMI_LOGGING is allowed in both debug and release builds.
    * [rocm-smi] Removed an initialize procedure which keeps
      debug_inf_loop. Seems this feature is not being used.

Change-Id: I79b48387609c6233c6f05b04fb8bba66b68c2399
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-05-17 21:18:52 -05:00
gobhardw 70a6c26704 fixing ci test issues for v1
Change-Id: I6be62c83a04b6a1a9f7b128086762dcf5ad79fb4
2023-05-17 21:32:12 -04:00
David Yat Sin a397373cea Add HSA_ENABLE_PEER_SDMA env variable
Add support for HSA_ENABLE_PEER_SDMA env variable that can be used to
disable use of SDMA engines for device-to-device transfers. Note that
setting HSA_ENABLE_SDMA=0 will disable all SDMA transfers and override
HSA_ENABLE_PEER_SDMA values.

Change-Id: I737b3c2b2efcf3ff237f98bc748f49b8252ed24a
2023-05-18 00:10:20 +00:00
gobhardw c3107fc258 SWDEV-398161, SWDEV-398764 Fixed --hsa-api for v2
Change-Id: I1902ff463851a3485b48f7b9400f7116a073365a
2023-05-17 17:22:44 -04:00
Philip Yang 5df82e3d14 kfdtest: Enable KFDEvictTest and KFDSVMEvictTest on aqua_vanjaram
For aqua_vanjaram APU mode, KFDEvictTest and KFDSVMEvictTest are
skipped. Those tests passed on dGPU mode with memory reporting partition
support on GFX 9.4.3.

Change-Id: I56357843c6743b01b807359dbb37b32391fd9a25
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2023-05-17 17:17:46 -04:00
Bing Ma 1e6d728730 libhsakmt: Add support functions for ASAN
Add support functions to remap the first page of device memory (GPU/GTT)
to share host ASAN logic.

Signed-off-by: David Yat Sin <David.YatSin@amd.com>
Change-Id: I4c27d5417ba80a172dccb0a079a597c5dc1c8f85
2023-05-17 13:38:19 -04:00
gobhardw d6f481e570 Fixing standalone sample compilation and CHANGELOG
Change-Id: I4b8cf46b32e3d76bcedeadb12357fb6eed1ee213
2023-05-17 11:46:24 -04:00
Ammar ELWazir ac6a76d718 Fixing rocprofv2 script
Change-Id: I96ee69e284eb51dc1fbd23682d3d88699a298dae
2023-05-17 11:41:16 -04:00
Ranjith Ramakrishnan ad002f1e7b Use the RUNPATH provided by build scripts
RUNPATH in libraries will be : $ORIGIN
RUNPATH in binaries will be : $ORIGIN/../lib

Change-Id: Iafa66a8e02cc8c5783903d40927b63652042d2f1
2023-05-17 09:10:50 -04:00
David Yat Sin 39feb83b88 Update documentation for hsa_amd_pointer_info
Update documentation for hsa_amd_pointer_info to clarify which fields
are invalid when the allocation type is HSA_EXT_POINTER_TYPE_UNKNOWN.

Change-Id: Idaed985962c4a98d281ebe01bef8ec2459da3985
2023-05-16 18:36:54 -04:00
Cole Ramos c5a19ca06a Merge pull request #125 from AMDResearch/separate-pmc-perf
Manually join rocprof runs
2023-05-16 16:51:46 -05:00
coleramos425 44edef4635 Enhance logging and warning reporting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-16 15:39:45 -05:00
Ammar ELWazir 256875a69f SWDEV-387702 & SWDEV-387711: Fixing the location of the rocprofilerv2 tool
Change-Id: I5a7439351f1153c4c9f29b3fb4990fcc4de69c65
2023-05-16 18:10:49 +00:00
Ammar ELWazir 52eebaa6e6 Fixing rocprofv2 script
Change-Id: I3adbd216116ad44032e5a01d880f9cf4d4074ae7
2023-05-15 18:40:41 -04:00
coleramos425 8eb7f2b7e5 Remove wave cycles from LDS section (#130)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-15 17:21:09 -05:00
coleramos425 d8d834ff60 Update VGPR counter (#117)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-15 17:04:08 -05:00
David Yat Sin 38e832a682 Reserve scratch on first queue allocation
Some workloads running on multi-GPU create 1 process per GPU. So each
process creates a GPU agent on every GPU, but will only create queues on
one GPU. This would cause un-necessary scratch reservation.

Change-Id: I50a216f0bcc0b5f707f3943147390b0ecec1ac22
2023-05-15 17:10:57 -04:00
gobhardw ee713682a1 SWDEV-398161, SWDEV-398764 Fixed hsa-trace failures for profiling data corrupted
Change-Id: I3d8dbb2a40d948cd06cb1278acc50dc5be4ca0ef
2023-05-15 22:38:23 +05:30
Graham Sider bd63e5045c Fix scratch allocation occupancy reduction loop
If the required scratch allocation is too large, ROCr will attempt to
reduce it by lowering the dispatch's targeted occupancy. The reduction
loop however was prone to overflow if waves_per_cu was not a multiple of
waves_per_group. Ensure no overflow by aligning waves_per_cu to
waves_per_group.

On GC 9.4.3 dGPU, dispatches with a large grid size and a
waves_per_group of e.g. 16 may require to reduce occupancy such that
waves_per_cu is less than waves_per_group to ensure the allocation size
is small enough. Allow this while also ensuring the tmpring scratch wave
count is kept divisible by the number of SEs per XCC.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: Ie4016dcd8166a9ae69e9decc26a3eec882b49480
2023-05-15 14:55:42 +00:00
Kent Russell d966243783 kfdtest: Add include directory for ROCr merge
When we merge thunk into ROCr, kfdtest will be in a different folder
structure. Add the new location to ensure that we can build now and in
the future with no disruptions

Signed-off-by: Kent Russell <kent.russell@amd.com>
Change-Id: I6517e061cb0da7137d903abbc380bfc7126f40d4
2023-05-15 10:13:49 -04:00
David Yat Sin 3477fbc661 Do not report reserved scratch cache as available
Scratch cache reserved memory is only available for scratch memory use
so do not report this memory as available to the user via the
HSA_AMD_AGENT_INFO_MEMORY_AVAIL api.

Change-Id: I52f96e62536458bcaa52b9f4be5de856d5680dc4
2023-05-15 09:45:31 -04:00
Ammar ELWazir 2a835dd7e8 Fixing Samples to adapt Enter & Exit Phase
Change-Id: I41d8ad18931cfb43fad79e60df4d22053cb00d17
2023-05-12 19:22:59 +00:00
David Yat Sin f0000da7b3 Removing invalid gfx entries
Change-Id: I1a9a9a064f5f65ecc3e124c5dd7d6baf6b5ccb5c
2023-05-12 11:59:27 -04:00
David Yat Sin 7b74271d5e Disable Queue_Validation_InvalidGroupMemory
Temporarily disabling rocrtstNeg.Queue_Validation_InvalidGroupMemory
until it is fixed.

Change-Id: Ifc1973a960c8d0bae27e2628e4bfddc60f70325d
2023-05-12 11:03:26 -04:00
Yifan Zhang d319660838 kfdtest: Using non-paged memory allocation for wptr on devices that have MES scheduler
Starting with GFX11, wptr BOs must be mapped to GART for MES to determine work
on unmapped queues for usermode queue oversubscription (no aggregated doorbell)

Change-Id: I10e30fdc2bec587cef9427faa4874957988c34b3
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
2023-05-12 01:06:37 -04:00
Yifan Zhang 53ed978c3d kfdtest: add non paged wptr judging API.
If MES is enabled, wptr has to be non paged memory,
Add an API to check this condition.

Change-Id: I53af1f6687d5332d102e7062c3d760e33b96e722
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
2023-05-12 01:06:37 -04:00
Cole Ramos 6dd77db61e Merge pull request #126 from feizheng10/simplify_show_all
Simplify interface of tty show
2023-05-11 14:23:57 -05:00
coleramos425 444102d927 Redefine boring merge values
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-11 14:04:02 -05:00
coleramos425 419e2fcac6 Add grid size option and cmd line option for --join-type
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-11 13:00:30 -05:00
gobhardw 0b401d71c6 SWDEV-397576 Adding protection for HIP calls to understand MI failures
Change-Id: Icd6a2cb3be5520ee57fdd76bfafa06801b7061c0
2023-05-11 13:02:31 -04:00
Saleel Kudchadker adf6512dad Report XGMI SDMA upon query
Report XGMI SDMA engines when queried for H2D/D2H.

Change-Id: I4fb7b24bc15d1745b3844485bdeab71282a787a5
2023-05-11 12:20:41 -04:00
Sam Wu ed74bc6eca sphinx documentation
ref: https://github.com/RadeonOpenCompute/rocm_smi_lib/pull/119

fix formatting in docs/index.md

Change-Id: I940ef8147a40bd3b702aa591bd56557a870621fb
2023-05-11 10:41:45 -04:00
Giovanni LB 55c6a2d4ad SWDEV-391616: Added network/file/off option for ATT analysis.
Change-Id: I77d0d6d6652f0bf1b3f46d919aec5c17e29f3da7
2023-05-10 18:39:48 -04:00
Giovanni LB 317147ca11 PLAT-130888: Added counter no-server/json_dump option.
Change-Id: I22fc2477845982beef8934d2fb55b519d2b2960c
2023-05-10 18:39:38 -04:00
Giovanni LB f656ef0784 SWDEV-393541: Closed ATT 5.6 features. Fixed python3 syntax for 5.6
Change-Id: Ia2b56b1c4c6e9ba37911746325683314aa464d7a
2023-05-10 18:39:29 -04:00
Giovanni LB 3170849fe1 SWDEV-393541: Added occupancy info.
Change-Id: Ib716b571210d35e1e5ffff29f8b0cced92607ff6
2023-05-10 18:39:17 -04:00
Giovanni LB f11ec66b1a SWDEV-393541: Added new parser. Json files are served from memory.
Change-Id: I24fe7d5111ac6aead8bcf5d07960ba0a5437ae39
2023-05-10 18:39:07 -04:00
David Yat Sin 9b35ce5b3b Fix incorrect check for image support
Change-Id: I77476204d40c245c9d9091853264a4e9fbb80725
2023-05-10 20:13:54 +00:00
Ranjith Ramakrishnan b487f87363 Set the default value of ROCM_HEADER_WRAPPER_WERROR to OFF
Using wrapper header files will result in #warning message by default

Change-Id: I8301e433d39f3e5d39384ede6f0e4464d0eb20a6
2023-05-10 12:36:00 -04:00
fei.zheng 74607b9ce7 simplify interface of tty show
Signed-off-by: fei.zheng <fei.zheng@amd.com>
2023-05-10 10:10:40 -06:00
Cole Ramos 8f9f607083 Merge pull request #124 from feizheng10/save_dfs
refactoring saved df files
2023-05-10 10:43:00 -05:00
Ranjith Ramakrishnan fbcbcd9e73 Set the default value of ROCM_HEADER_WRAPPER_WERROR to OFF
Using wrapper header files will result in #warning message by default

Change-Id: I87739cabb365b9370b1182cf23ca9b54d99149c3
2023-05-10 00:47:33 -04:00
Cole Ramos 27952a57c0 Merge pull request #123 from feizheng10/top_n
Allow to specify the maximum number of kernels shown
2023-05-09 14:14:18 -05:00
Cole Ramos 8e9e8a42f3 Add TopN dropdown to GUI navbar
Signed-off-by: colramos <cole.ramos@amd.com>
2023-05-09 14:12:19 -05:00
Cole Ramos 41affd6343 Add TopN to standalone GUI callback function
Signed-off-by: colramos <cole.ramos@amd.com>
2023-05-09 14:09:44 -05:00
Cole Ramos dbae98e267 Pass max_kernel_num to GUI
Signed-off-by: colramos <cole.ramos@amd.com>
2023-05-09 14:04:33 -05:00
Cole Ramos c5c829fa1b Update src/parser.py
Signed-off-by: Cole Ramos <colramos@amd.com>
2023-05-09 12:42:12 -05:00
Shane Xiao 5d6f900353 kfdtest: DeviceHdpFlush need set target ASIC with different Gfx versions
If Dev0 and Dev1 are not the same gfx, we should temporarily
set the target ASIC for compiling Shader code.

Signed-off-by: Shane Xiao <shane.xiao@amd.com>
Signed-off-by: Shikai Guo <shikai.guo@amd.com>
Change-Id: I5836beb16ade519f5a148d3d2b9c2875554f0c35
2023-05-09 09:50:07 -04:00
Ranjith Ramakrishnan bf49b88866 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: If5847e1b03523251238018b2cf0725b302619963
2023-05-08 20:45:08 -07:00