Commit Graph

8920 Commits

Author SHA1 Message Date
Nicholas Curtis 5b3a8d5075 Incorporate review comments
Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
2023-06-30 15:56:33 -05:00
Karl W. Schulz 8edba713fb updating path for rocm repo to supported rhel8 release (8.8)
Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
2023-06-30 15:01:57 -05:00
Nicholas Curtis be1eeee370 apply formatting
Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
2023-06-30 14:46:23 -05:00
Nicholas Curtis 60d4a42536 Add options to enable latexpdf builds
Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
2023-06-30 14:46:23 -05:00
Nicholas Curtis 8857393571 fix missing
Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
2023-06-30 14:46:23 -05:00
Nicholas Curtis aaed37d004 fix formatting
Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
2023-06-30 14:46:23 -05:00
Nicholas Curtis 54bc058085 Incorporate review comments
Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
2023-06-30 14:46:23 -05:00
gobhardw 23695fbd79 Fixing RPM build errors for roctracer
Change-Id: I55e67c5c31e266fe187bb28712a0c616ebe68107
2023-07-01 00:22:09 +05:30
Ammar ELWazir 6dc1066d5d Changing build directory structure to match rocm
Change-Id: I22ed8ef777cfdbebe6caca65b68ff5e6bb12d35e
2023-06-30 14:11:46 -04:00
gobhardw 9ffb34f9d4 SWDEV-408750: Reoving Record_ID from HIP api trace
Change-Id: Iba9022246def090b1bbb90b68e67d54bab1bea31
2023-06-30 14:40:59 +05:30
Jeremy Newton 132a19e9c3 Fix non-x86 builds
I've just reverted some code what it was in 5.5 by wrapping new x86
specific bits with #if's, e.g.:
- CPUID is x86 specific
- mwait is x86 specific

Change-Id: I6cefae34282c777c7340daf3f934d2a11742502e
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2023-06-30 01:04:04 -04:00
Tom Rix 19c3e2aff9 Improve handling of ContructBDFID errors
Building on this package on Fedora reports this warning
In file included from rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/src/rocm_smi_main.cc:62:
In member function 'amd::smi::Device::set_bdfid(unsigned long)',
    inlined from 'amd::smi::RocmSMI::Initialize(unsigned long)' at rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/src/rocm_smi_main.cc:330:27:
rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/include/rocm_smi/rocm_smi_device.h:199:42: warning: 'bdfid' may be used uninitialized [-Wmaybe-uninitialized]
  199 |     void set_bdfid(uint64_t val) {bdfid_ = val;}
      |                                   ~~~~~~~^~~~~
rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/src/rocm_smi_main.cc: In member function 'amd::smi::RocmSMI::Initialize(unsigned long)':
rpmbuild/BUILD/rocm_smi_lib-rocm-5.5.1/src/rocm_smi_main.cc:324:12: note: 'bdfid' was declared here
  324 |   uint64_t bdfid;
      |            ^~~~~

Only set the bdfid when it is know to be valid.

Signed-off-by: Tom Rix <trix@redhat.com>
Change-Id: I839b4d2d2d4e3b25469cf5972245b9630da00c87
2023-06-30 00:16:44 -04:00
Jeremy Newton 74dc98114f Update default version to match tags
When building from github, these tags don't exist, so the defaults
should try to match the internal tags

Change-Id: Id570341f27e21916b1a7f3605ee2b5b9716cad9b
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2023-06-30 00:16:22 -04:00
Ori Messinger 7cc3ffc115 kfdtest: Fix kfdtest.exclude "ReadOnlyRangeTest" Issue
The purpose of this patch is to fix an issue in kfdtest.exclude's
blacklist for KFDSVMRangeTest.ReadOnlyRangeTest.

Excluding "KFDSVMRangeTest.ReadOnlyRangeTest" without adding a "*"
to the end causes the test to still run, since after a recent patch
the test actually runs these two variants instead:
   -"KFDSVMRangeTest.ReadOnlyRangeTest/0"
   -"KFDSVMRangeTest.ReadOnlyRangeTest/1"
(For XNACK OFF/ON)

Now, the test is excluded as "KFDSVMRangeTest.ReadOnlyRangeTest*"
to cover those two XNACK ON/OFF variants.

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I067c4c99fe839ce6cec5d134bd605e8cb41b8291
2023-06-29 23:14:30 -04:00
Jeremy Newton 1a86dd75bb Fix version file generation
This looks like a typo, as the following variables are not defined:
- AMD_SMI_LIBS_TARGET_VERSION_MAJOR
- AMD_SMI_LIBS_TARGET_VERSION_MINOR
- AMD_SMI_LIBS_TARGET_VERSION_PATCH

Change-Id: I43449e7bd2a2de643d33e79fad063a7859679c8d
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2023-06-29 14:42:30 -04:00
Ammar ELWazir 3b9a213378 SWDEV-408630: Fixing missing versioning functions implementation
Change-Id: Id5a8d565301d0515583bf566de7d04870a771aa1
2023-06-29 18:04:51 +00:00
Jeremy Newton d1f025bff6 Only install asan license when enabled
Change-Id: I7b2aad1042846401d7422ca499ef6912f49f6b50
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2023-06-29 10:20:16 -04:00
Philipp Knechtges d220e16000 fix link-time ordering condition
This fixes a segfault error in cases where the linking order of
compilation unit varies. Reason behind the segfault is that one
global variable in one compilation unit depends on another global
variable in another compilation unit, but there is no guarantee that
this other compilation unit is initialized first. The fix forces a
reinitialization at the first invocation of the library.

Change-Id: I1428592c6898bca13a330c4588941de260ff0370
2023-06-29 10:08:29 -04:00
Jeremy Newton 473a66d115 Don't install asan license if disabled
Change-Id: I8bffe5ec8496ff11e6d66995dd470cddb13f3c0d
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2023-06-29 09:34:49 -04:00
Ammar ELWazir b6836ad330 Fixing Reached HW Limits message for counters
Change-Id: I61830307c7a45fd689adddc8f5ddc9411aa138f8
2023-06-29 09:32:38 -04:00
Ammar ELWazir 1f9927abf7 Fixing CMakeLists.txt
Change-Id: Iea14571f23fef5e683a59afa4d41ee3f63f6df46
2023-06-28 23:50:42 -04:00
Hao Zhou 8e8293a025 Merge amd-staging into amd-master 20230629
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ia0ac7e6a6d0765af5bbce09c8c99f8d782a5e01a
2023-06-29 10:18:17 +08:00
gobhardw 5ebf0ad12f Fixing doxygen error for latex
Change-Id: I8d1c0e7ba270dc4a49eba5350c3652f4d4f73fa7
2023-06-28 15:01:27 -04:00
gobhardw 2b3c360324 Fixing third party package installation opensuse
Change-Id: I797473d46ff833564232cbabf62384833086f7d8
2023-06-28 20:18:41 +05:30
Ammar ELWazir d8834eb370 Fixing Test Packages
Change-Id: I1c017732ce1dedfe8b74d680add101ca574d295c
2023-06-28 08:34:01 -04:00
Ammar ELWazir 67493da70d Fix SLES Dependency packages
Change-Id: Ie2a6a9febfbf6f71407b19f37ccd24680573975d
2023-06-27 23:41:51 +00:00
Jeremy Newton d00d885394 Fix python script install permissions
The keyword "PROGRAMS" should be used in place of "FILES" in order to
make sure executable scripts have the correct permissions.

Change-Id: I6c287dc1291774ad6d97a04d621957dea0a1b697
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
2023-06-27 14:57:59 -04:00
Giovanni LB 0af942a17c SWDEV-380521: Fixing trace period
Change-Id: Idc57a1d7728ce3b538df63677512031848c87fa8
2023-06-27 10:54:49 -04:00
Ammar ELWazir e2871a080b Package names correction for RPM
Change-Id: Iab4e4896a8050223eac20bdf55675ce659fb4a5b
2023-06-27 07:32:29 +00:00
Ammar ELWazir 0947d8a332 Fix requirements.txt
Change-Id: I5af51d0edfaad70ab54e115c2634acd96fb6505d
2023-06-27 07:26:15 +00:00
Ammar ELWazir 80276590cf Async Copy Test Fix
Change-Id: I37af8204e3a9e0e28a72887b1194ebd2d83aa304
2023-06-27 07:23:04 +00:00
Ammar ELWazir 907aa39cda Adding CPack requirements for external packages
Change-Id: I00dbd6a4a53648c1d6254f694f901d9bbfd1fdc7
2023-06-27 00:06:52 -04:00
coleramos425 f91de7d2f7 Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-06-26 15:38:51 -05:00
coleramos425 a89cb96b69 Extend filtering into timestamps.csv (#80)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-06-26 15:30:38 -05:00
Alex Sierra 0cbf26c148 src: add debug API to support GPU core dump
Functions to API added to extract the following information from KFD
Runtime information, device info and queues snapshot.

Signed-off-by: Alex Sierra <Alex.Sierra@amd.com>
Change-Id: If995ecc54497ab61189bb0f209c64af0bbb0f56f
2023-06-26 18:58:15 +00:00
Alex Sierra 5e0a32d7b3 add hsaKmtGetRuntimeCapabilities API
Queries for runtime capabilities after its being enabled

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Change-Id: I098c0e9862c0c1d5e304b111cdc281c0ccd09691
2023-06-26 18:58:15 +00:00
gobhardw f1b097e37e Fixing copy_on_engine app
Change-Id: Icd53a9eead2d8ca422838cd2843860c9ead57fff
2023-06-26 23:24:20 +05:30
Bill(Shuzhou) Liu 910bf677a9 Crash if no hwmon sysfs
Return NOT_SUPPORTED if no hwmon sysfs.

Change-Id: I01356a21f004ab552ca6ef7ffb49934bfdfd5e31
2023-06-26 08:00:32 -05:00
Hao Zhou 58a09f7063 Merge amd-staging into amd-master 20230625
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Id257f743e4a45881696c053b08a245b09b3e34ad
2023-06-25 11:20:46 +08:00
Ammar ELWazir fe3fa1d83f Removing Kernel Trace from sys-trace as HIP_OPS have the same results
Change-Id: I17a578487e5b4f4f215d3af123a9e63e295bf6d8
2023-06-23 16:16:50 -04:00
Ori Messinger 3447b795df kfdtest: Fix gfx_target_version Parsing Issue
The purpose of this patch is to fix an issue in the run_kfdtest.sh
script's gfx_target_version parsing.

When the character length of the "gfx_target_version" value is
equal to 5 instead of 6, it will now be zero padded on the left to
allow each Major/Minor/Stepping value to be parsed correctly.

Also, kfdtest.exclude file now replaces the default filter for
aqua_vanjaram with the following 3 gfx filters:
gfx940, gfx941, & gfx942

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I1f0264d3705803f24ad3c458e6bd367fbbec62be
2023-06-23 13:18:05 -04:00
gobhardw 19099328cf Fixing input file processing and ATT
Change-Id: I34b674d6a6f67796c4747e40e2e3715780ffdb26
2023-06-23 21:21:47 +05:30
gobhardw 971cad0cf5 Rocprofiler changes to enable Tracer tests in CI
Change-Id: I4cd3a0f832f267dfd32175212ee2953c088e4d03
2023-06-23 20:49:04 +05:30
David Yat Sin 60a0fd64c4 Add query for driver gpu_id
Add query OS driver node ID (gpu_id)

Change-Id: I72ebc54d8ae5dbcd1346535912160a642b1065ae
2023-06-23 15:02:48 +00:00
gobhardw f44b80acfb Fixing Broken Tracing APIs
Change-Id: Ia73ff534fb8da81254007f28984f9f34f91bfb2c
2023-06-23 13:49:01 +05:30
Jonathan R. Madsen 6c9b66d938 PyTorch Python fork fix part 2 (#292)
PyTorch Python fork fix part 2

- store script file in environment for robustness against restart after fork
2023-06-22 17:14:40 -05:00
Ammar ELWazir 46420f040e Fixing V2 tests
Change-Id: Ib25502c6ca6cdfdcd40122f811902293a6bb2165
2023-06-22 14:32:07 +00:00
Ammar ELWazir a7709de6d7 Adding requirements.txt for python3 packages
Change-Id: I0407a18cf21191515966ddc7dca52479a6b87793
2023-06-22 10:00:09 -04:00
gobhardw cc5a1189db Fixing --list-counters from rocm path
Change-Id: I5746b862e6dd9050703dd0d9a793a37187ec2343
2023-06-22 00:16:39 -04:00
Jonathan R. Madsen a85f141afe PyTorch Python fork fix (#291)
* PyTorch Python fork fix

- fixes issue where forking process in PyTorch causes omnitrace/__main__.py to fail due to missing script argument

* Update source/python/omnitrace/__main__.py

Remove debugging "print" LOC
2023-06-21 22:30:47 -05:00