Граф коммитов

13501 Коммитов

Автор SHA1 Сообщение Дата
Evgeny dfec1e8668 enabling memory manager by env var
Change-Id: I8fe708882123b1dd62c20afd9e4967e9ab80c97a


[ROCm/rocprofiler commit: 81d768c91f]
2020-07-13 12:58:50 -05:00
Chris Freehill 68155baed5 Handle un-readable kfd properties files
Some systems have kfd sysfs properties entries that
are unreadable--for example, when a multi-gpu system is
dividing the gpus among containers, each container may
only be able to access certain gpus.

Previously, all kfd topology node properties entries were
assumed to be valid. Now, we check for readability before
declaring them "valid".

Fixes SWDEV-240169

Also:
* remove an assertion that would happen when no pcie
device identifier files are found on the system.
* fix cpplint issues

Change-Id: I74321b685159dd2628c890b33c39ad82988cb9dd
2020-07-10 12:35:31 -04:00
Ramesh Errabolu b0b0a1b479 Fix typo in the field name Mem_EDCSupport of HSA_CAPABILITY entity
Change-Id: Ic1aba0b2c6e7bc8324fe756df84998f32a8c09da
2020-07-09 12:42:30 -04:00
Ashutosh Mishra 605b3a5105 Adapting to latest HSA changes
JIRA : SWDEV-234471
With this change rocminfo exe shall be created using using hsa-runtime64::hsa-runtime64 which
internally decides whether static or shared libs based on its cmake build options

S. Keely:
Update patch to use find_package for rocr dependency.

Removed deadcode now supported by find_package.

Removed "hsa/" prefix from include statements since find_package
points to the target (ie rocr) include directory.

Removed typedef on structs due to new clang-11 warning.

Adapting to the comments : Removed PATHS for hsa find_package

Change-Id: I1ec65cdbce3085e44f1839da196eb4ae5c9ff30d
2020-07-09 18:38:46 +05:30
Chris Freehill e2c7ef6422 TestPerfCntrReadWrite fail rsmitst if not supported
Fixes SWDEV-243639

Change-Id: I087171231fbbe5939f239efad25a5485529381a3
2020-07-08 18:41:30 -04:00
Chris Freehill c2ef9a6879 Fix docs + cmake_utils path issues
This corrects issues that arose after OAM reorganization.
It should address SWDEV-243294.

Also, fix some compile warnings that show up on RHEL.

Change-Id: Id14d444905da35cd7346bcfbcd82b6d0572708c4
2020-07-08 09:47:25 -05:00
Yong Zhao 76a6781c2d kfdtest: Add gfx1030 support
Change-Id: I5fd0d9af09cbefc0acbe24397a7e2f3aa14a7c97
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2020-07-07 18:09:56 -04:00
Yong Zhao 58ca2b745c libhsakmt: Support gfx90a
Change-Id: I1ad594eab093f5aa30143ade4e72f2379c9e3616
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2020-07-07 15:55:28 -05:00
Sean Keely f6e6eae86d Remove unnecessary HSA_API declarations.
The excess declarations mark implemenation functions as default
visibility.  Normally this is not an issue since our linker script
will specify which visible symbols will be permitted into the dynamic
symbol table.  However, for static linking methods which apply linker
directives during incremental linking symbol visibility must be correct
in the (non-dynamic) symbol table.

Change-Id: I13dc8dd1019368e8943920d36335a91f0c555a92
2020-07-07 16:41:34 -04:00
Yong Zhao 7c74069d6a libhsakmt: Prepare for gfx1030 support
PCI IDs have yet to be added later.

Change-Id: Iac303fc1346f4ed5c4da5300b1e311c1c6938ee2
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2020-07-07 11:07:14 -04:00
Rachida Kebichi 37231cd00d Fix for ptr type unknown
Change-Id: I17674c689e7051b79d15cc4cae9676c86a8c46ae
2020-07-07 01:16:16 -04:00
Rachida Kebichi e6ab54a04c Fix for ptr type unknown
Change-Id: I17674c689e7051b79d15cc4cae9676c86a8c46ae


[ROCm/rocprofiler commit: 37231cd00d]
2020-07-07 01:16:16 -04:00
Rachida Kebichi f15937f13c Removed not needed extra parenthesis
Change-Id: I485c248773e7b0344e754c5ecf3341321216b7b2
2020-07-06 12:44:50 -04:00
Rachida Kebichi 03b77328c4 Removed not needed extra parenthesis
Change-Id: I485c248773e7b0344e754c5ecf3341321216b7b2


[ROCm/rocprofiler commit: f15937f13c]
2020-07-06 12:44:50 -04:00
Tony ac3244d431 Define URI for deprecated hsa_executable_load_code_object
Change-Id: Id9b6f8895bdafa3460a27984e0f773ec153378d7
2020-07-01 23:02:54 -04:00
Laurent Morichetti 23df617150 Set the correct bit in m0 for gfx10
The size of the m0 payload for MSG_INTERRUPT has changed in gfx10. It is
now 23bit wide instead of 24bit wide in gfx9.

Since we are generating different binaries for gfx9 and gfx10, we can
conditionally set DEBUG_INTERRUPT_CONTEXT_ID_BIT to 23 for gfx9 and
22 for gfx10.

Change-Id: Ifc15a9fa4399d35328ab58b742f791f1660bcd9a
2020-06-30 22:02:41 -04:00
Chris Freehill 866438966d Quiet spurious pthread_unlock warnings
A message is output in debug builds when pthread_unlock
returns an error. However, in most cases, it should return
EPERM. In fact, if it doesn't return EPERM, it is an
indication of a problem. This commit adjusts accordingly.

Change-Id: Ia5cad89aa6e68e79c1291ea21adffb0fa68f2300
2020-06-30 15:12:58 -05:00
Cole Nelson 141246eeeb libhsakmt: set packaging arch, field separators, vendor info
Change-Id: Ia1392285f5ee0beeaae136ad7d68e1723bc590ba
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
2020-06-30 07:38:14 -04:00
Divya Shikre e21232f059 OAM: Implement get_sensors_info()
Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: Ia2c6e18f463c0f97530ca8ad07d249e6f2116534
2020-06-29 14:50:19 -04:00
Evgeny f6e42f2614 mem_manager.py packaging fix
Change-Id: I8faf85056f97e8bcbc4b3511d351b9974c3c9d75
2020-06-29 13:27:22 -05:00
Evgeny 4187f10eb3 mem_manager.py packaging fix
Change-Id: I8faf85056f97e8bcbc4b3511d351b9974c3c9d75


[ROCm/rocprofiler commit: f6e42f2614]
2020-06-29 13:27:22 -05:00
Gang Ba fec3780c1a Revert "libhsakmt: add Streaming Performance Monitors APIs"
This reverts commit d675d1cce1.

Reason for revert: Change was submitted by accident

Change-Id: If05c705e22296fd3ca789f269737d379a933361d
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2020-06-29 10:54:54 -04:00
Evgeny c196fbe0d5 JSON trace dependencies flow to-tid fix
Change-Id: If21b12d0560e7db07b1ff02e0441addff3453cbe
2020-06-29 01:16:05 -05:00
Evgeny 1a84fa2528 JSON trace dependencies flow to-tid fix
Change-Id: If21b12d0560e7db07b1ff02e0441addff3453cbe


[ROCm/rocprofiler commit: c196fbe0d5]
2020-06-29 01:16:05 -05:00
Evgeny d013413cb8 fixing activity correlation for n-process use case
Change-Id: I3e52452b586a08fc9cfcb50851ddcc600c7ef910
2020-06-27 04:01:51 -05:00
Evgeny fb7e7f1568 fixing activity correlation for n-process use case
Change-Id: I3e52452b586a08fc9cfcb50851ddcc600c7ef910


[ROCm/rocprofiler commit: d013413cb8]
2020-06-27 04:01:51 -05:00
Evgeny 2567ef572e fixing activity correlation for n-process use case
Change-Id: Ied5b0d112719784fa00bfbf540bc30950ca147ea


[ROCm/roctracer commit: 086a88288e]
2020-06-27 01:08:57 -05:00
Evgeny 086a88288e fixing activity correlation for n-process use case
Change-Id: Ied5b0d112719784fa00bfbf540bc30950ca147ea
2020-06-27 01:08:57 -05:00
Ramesh Errabolu 23646846f7 Syntax of script run at uninstall is malformed
Change-Id: Icf056a66411d99a5aa8a2ad61f55751c0ac43b68
2020-06-26 16:56:29 -05:00
Ramesh Errabolu f7350c6020 Update ROCr implementation of Queue ID
Change-Id: Iec48b1978e4d01563e71cfb58aed8f1bbc446443
2020-06-26 13:25:00 -05:00
Sean Keely cc7a197ff8 Use correct queue id for gws assignment.
Change-Id: I9157951abce65b60dfe0e1db5819510a7703547f
2020-06-26 14:24:06 -04:00
Tony 91cb98dab6 Code object reader improvements
- Make code object reader use mmap when loading from a file on Linux.
- Support computing code object URI for memory either fro the loaded
  host executables, or from all mmapped files. Define the environment
  variable HSA_LOADER_ENABLE_MMAP_URI to non 0 to search the mmap
  files, otherwise only the loaded executables will be seatched.
- For mmap search, determine file size and ommit offset and size URI
  fragment when the code object is the whole file even when specifying
  a file size explicitly or specifying memory that has been mmaped.
- Always return a non-empty code object URI.
- When a code object reader is created, complete all fields to ensure
  it can be used in a multi-threaded manner using only const
  operations.
- Add missing exception handlers in the AMD vendor extentions.
- More rigorous checking for errors.

Change-Id: I07797b1dc60c5c64245142d77becf9f7c9643395
2020-06-25 12:18:50 -04:00
Evgeny 60c106a07d JSON start point fix in multiproc usecase
Change-Id: I84317af41ec0828f08bb2d45803515738167e77a
2020-06-25 10:27:00 -04:00
Evgeny 6678281480 JSON start point fix in multiproc usecase
Change-Id: I84317af41ec0828f08bb2d45803515738167e77a


[ROCm/rocprofiler commit: 60c106a07d]
2020-06-25 10:27:00 -04:00
Rachida Kebichi e539bc5dcd Merge "memcpy info added to csv, sqlitedb and json" into amd-master 2020-06-25 10:18:24 -04:00
Rachida Kebichi c4355292ed Merge "memcpy info added to csv, sqlitedb and json" into amd-master
[ROCm/rocprofiler commit: e539bc5dcd]
2020-06-25 10:18:24 -04:00
Rachida Kebichi 186a247dbe memcpy info added to csv, sqlitedb and json
Change-Id: I56f2ec667c7f3741b519f3335a3eec26b34c0ab4
2020-06-24 18:41:21 -04:00
Rachida Kebichi b223b9f084 memcpy info added to csv, sqlitedb and json
Change-Id: I56f2ec667c7f3741b519f3335a3eec26b34c0ab4


[ROCm/rocprofiler commit: 186a247dbe]
2020-06-24 18:41:21 -04:00
Vlad Sytchenko 5fb771a195 Correctly set CMAKE_MODULE_PATH
Since CMAKE_MODULE_PATH can already be set by another project,
we should just append the libhsamkt cmake module directory to it.

Change-Id: I999dc52a2862e4bbff02e0a8e8b39530f4dae2cd
Signed-off-by: Vlad Sytchenko <vladislav.sytchenko@amd.com>
2020-06-24 15:47:06 -04:00
Evgeny f214238880 cleanup
Change-Id: I518f741d3d3d0bb514936c4db8b727bdc79d9fdc
2020-06-24 12:22:22 -05:00
Evgeny d22c364abe cleanup
Change-Id: I518f741d3d3d0bb514936c4db8b727bdc79d9fdc


[ROCm/rocprofiler commit: f214238880]
2020-06-24 12:22:22 -05:00
Evgeny 9f7e936d70 concurrent sqtt support
Change-Id: I91391fafabc93aefa5d244d870ef82b96a59dc52
2020-06-23 20:00:49 -04:00
Evgeny c75faaaa37 concurrent sqtt support
Change-Id: I91391fafabc93aefa5d244d870ef82b96a59dc52


[ROCm/rocprofiler commit: 9f7e936d70]
2020-06-23 20:00:49 -04:00
Evgeny 3e2239b099 adding post initialization of HIP API pointer args to print returned by reference values
Change-Id: Ifb73434d7ab9cd2dfe8811fc0cd013b78f4e12f2


[ROCm/roctracer commit: a83acdae3a]
2020-06-23 20:00:09 -04:00
Evgeny a83acdae3a adding post initialization of HIP API pointer args to print returned by reference values
Change-Id: Ifb73434d7ab9cd2dfe8811fc0cd013b78f4e12f2
2020-06-23 20:00:09 -04:00
Evgeny 708edfe989 tblext.py fixing: 'stream_ind' not-inintialized python issue; app START time message;
Change-Id: Ib17c49daf7c118aa83025d805d707bf3d8e1c88f
2020-06-23 19:58:33 -04:00
Evgeny cb337997db tblext.py fixing: 'stream_ind' not-inintialized python issue; app START time message;
Change-Id: Ib17c49daf7c118aa83025d805d707bf3d8e1c88f


[ROCm/rocprofiler commit: 708edfe989]
2020-06-23 19:58:33 -04:00
Sean Keely 71d85855d7 Re-enable EDC reporting.
Change-Id: Iccd2532e22323ff5ba4c411b169fcda885968059
2020-06-23 18:23:50 -05:00
Amber Lin 27deaea6e8 OAM: Add get dev and pci properties and sensor count
Also, add amdoam_get_error_description.

On behalf of
Amber Lin <Amber.Lin@amd.com> and
Divya Shikre <DivyaUday.Shikre@amd.com>

Change-Id: I1f5ac0c5948adb2c30008e95c501e8b69b8183b6
2020-06-23 17:21:07 -05:00
Evgeny 58fadcfa7c profiler app-replay results merge fix; stream index postproc fix;
Change-Id: If58ca46fb0259b4e69a764935cfd66fc80af507a
2020-06-23 13:15:58 -04:00