Commit Graph

8920 Commits

Author SHA1 Message Date
Sean Keely 3fe891d5da Suppress Finalizer loading attempts.
This has been the default mode for a while now since we don't
distribute or build the finalizer.  Removing the attempt cleans
up debug mode messages that are causing confusion.

Change-Id: I8162c95abd5bbedaa22b90191f7a384a34c388ae
2020-04-18 00:06:42 -04:00
Sean Keely e25ae1263b Remove references to finalizer header.
Change-Id: I6608c95268ab4bc66053d889cf7d5a30cd8fccab
2020-04-17 23:50:23 -04:00
Sean Keely a9470e3563 Correct rocrtst numa awareness.
Pool size was being used where alloc_max_size should be.
Changes are necessary on NUMA systems where not all nodes have
installed memory.

Change-Id: If8f507cae50a8dfeae8572d4e39df757abe28599
2020-04-17 23:43:38 -04:00
Jonathan Kim af249159ee kfdtest: do not request host accessible memory for P2P tests
Do not request host accessible memory otherwise small-bar XGMI fails.

Change-Id: I6b1e750839ae66a34c85405fa8d0a4aa455399ef
Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com>
2020-04-17 23:42:10 -04:00
Sean Keely 9fe44ed675 Don't lock KFD allocated system memory.
Lock API suceeds but the GPU still faults on the address.
This should be fixed in Thunk and/or KFD as well.

Change-Id: I8b2fbcae61ab181e4fe7f0b64e43a5f0772efb24
2020-04-17 21:45:01 -04:00
Evgeny 422dba832f inc/ext installation fix
Change-Id: If8f42cc5fe6bd46c6b341cdb6649bbe5013f97ad
2020-04-17 16:11:50 -05:00
Ramesh Errabolu 7434fa14d4 Extend RocrTst to query UUID of ROCm devices
Change-Id: I6c9fa9751c893ba119e8b7a2808a8ab2aebeba3b
2020-04-16 21:29:32 -04:00
Felix Kuehling 8ee763d94a kfdtest: Fix problems finding kfdtest.exclude
When running run_kfdtest.sh through a wrapper script that sources
run_kfdtest.sh, kfdtest.exclude isn't found because $0 points to the
location of the wrapper script. User $BASH_SOURCE instead of $0 to
find the location of the correct run_kfdtest.sh script.

Change-Id: I0ae7899e527e6d98bb8651197484e5ee03a5fd7b
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2020-04-16 18:23:33 -04:00
Chris Freehill 373d8abdec Fix rocm_agent_enumerator on RHEL
This fixes SWDEV-231760

Change-Id: If704c8ff76548e10ddbda1b5c1ad0c28df7ab6f0
2020-04-16 16:39:51 -05:00
Kent Russell 7ee9e01587 KFDTest: Use SMI for HIGH clocks, if possible
Some systems don't support coarse-grained DPM, so performance level will
fail. Remove the compute_utils.sh references, and just use the SMI if we
request clocks be high, without throwing errors if it fails.

Change-Id: Ic5beda9921128be36ac2d58cae3f0608618a8e21
2020-04-16 07:59:33 -04:00
Srinivasan Subramanian 5e35364838 libhsakmt: check ret and errno for EBADF
Change-Id: I9fcbf955d8b7b01ff1025534a8c2eaa8e6790565
Signed-off-by: Srinivasan Subramanian <srinivasan.subramanian@amd.com>
2020-04-15 20:55:40 -04:00
Ramesh Errabolu 30f46e4e24 Stop building and packaging Tools library
Change-Id: Iee430c24e32ea7412f21564fe8970749e4954b91
2020-04-15 13:58:33 -04:00
Laurent Morichetti 5f783494f1 Return a file URI for elf images in shared objects
Iterate the loaded shared objects to see if the given elf image binary
is part of a loaded segment.

Change-Id: I074cacd99eb5b59f883f4ce2bd901e0e35a660b8
2020-04-14 15:22:43 -04:00
Evgeny 0cd31f8295 adding HIP_PROF_HIP_API_STRING macro 2020-04-14 13:12:52 -05:00
Ramesh Errabolu a1b4a580fc Extend rocminfo to print UUID of ROCm devices
Change-Id: I258962046e6d05dda91a8c48af646e50500b2d53
2020-04-13 20:42:43 -05:00
Nathan O 6d5781bb14 Fix hsa_amd_agents_allow_access documentation
- Update the documentation comment in hsa_ext_amd.h, which contained
   contradictory and incorrect information about an argument to the
   hsa_amd_agents_allow_access function.

Change-Id: I60b0dbbdc761078cd81906bc2c63a27d7e6b53e1
2020-04-10 18:26:13 -04:00
Evgeny 57766f143e reverting hpi flush function 2020-04-10 15:57:59 -05:00
Evgeny fc79e36928 adding ROCP_WITH_HIP_API_STRING macro 2020-04-10 12:52:51 -05:00
Evgeny 9ffbfc0bee txt2params.py packaging
Change-Id: Ia7221fbcbebc89c0dba8eca96ef9a4b01a258f05
2020-04-10 10:50:04 -05:00
Chris Freehill 1c9ef44398 Add checking for no-longer-existing process in test
When getting process information for a process, it's possible
that between the time the process ID was discovered and when
we attempt to collect data for that process, that the process
ended. This change is meant to handle that in the test case.

* Also, fix compile warning by removing unused variable.

Change-Id: I62f9a84a63548c856f0661fef15b7d248a330c05
2020-04-10 08:51:44 -05:00
Evgeny a46c6984a2 using hipApiString() if defined 2020-04-10 01:15:20 -05:00
Evgeny f819e1c463 elliminaring the need of AMD_INTERNAL_BUILD macro defined
Change-Id: Ie97aef943793b1e4f40b7c7397af313520b35beb
2020-04-09 23:41:51 -05:00
Evgeny Shcherbakov c96b4c4158 Merge "sysinfo metadata" into amd-master 2020-04-09 11:19:51 -04:00
Evgeny Shcherbakov 1b69ee9592 Merge "support for hip parallel streams" into amd-master 2020-04-09 09:57:06 -04:00
Ramesh Errabolu 89f7ef224c Extend Rocr Visible Devices functionality to include UUIDs
Change-Id: Ia2892e4033717556a422fe33dec0294fe2ca9e28
2020-04-09 00:42:53 -05:00
Ramesh Errabolu 45958c727d Extend ROCr to surface UUID of GPU devices that suppport
Change-Id: I478db68d69a01578770403fa695f9e6391637573
2020-04-08 19:19:22 -05:00
Chris Freehill f8b57c3b16 Add device mutual exclusion tests and related fixes
* Added a new test to verify mutual exclusion of access to device
  resources
* Added some missing acquiring of mutexes to some RSMI calls, as
  well as try-catch blocks.

Change-Id: I87aac009878a0b2d1f975e1d5b794d887bb23ff9
2020-04-08 15:05:11 -05:00
Rachida Kebichi 69b5c85c2b sysinfo metadata
Change-Id: Ic11dc307fe5f1c3cfd02e2dfb023930e4caab87f

fixes for json metadata generation

Change-Id: I9899693b6ece68cb5aeb9b756f7bef75c9e896bb
2020-04-08 12:27:02 -04:00
Rachida Kebichi 2847137a49 support for hip parallel streams
Change-Id: I5db7a72b58d795e69111b326ded1fecb9420eaed

fixed issue with pattern sub in hip parallel streams code

Change-Id: I9e78bf79a11eefb109799c97fdca41642284870f
2020-04-08 12:24:56 -04:00
Evgeny fdb8f55e02 adding standalone intercept test; queeu_start/stop API fixed as public;
Change-Id: I5489a5ff69454985b955c9e4027f812168de1ecb
2020-04-08 04:31:52 -05:00
Chris Freehill 52196caaee Shared mutex fixes and improvements
* Don't make different shared memory mutexes for different users
* Don't delete (unlink) the shared mutex file if the mutex
  initialization fails. This may mess up other processes that
  are using it. Instead, print a message on how to resolve the
  situation, and then throw an error.

  Note, this situation comes up when debug builds (usually)
  either assert() or otherwise end execution without a proper
  clean up.
* Remove cpplint from shared_mutex code

Change-Id: I5f8ca6150cac5c2405fb97007516da345093f966
2020-04-06 17:08:33 -05:00
Sean Keely 884fed4f04 Correct initial kfd_open_count increment.
Don't set kfd_open_count=1 unless hsaKmtOpenKFD actually succeeds.
This prevents returning HSAKMT_STATUS_KERNEL_ALREADY_OPENED in
subsequent calls when KFD is actually closed.

Signed-off-by: Sean Keely <Sean.Keely@amd.com>
Change-Id: Ia870b5faa8626826a6c8795aa10784d376cf2e80
2020-04-03 21:05:07 -04:00
Mukul Joshi fd79e5c161 Add rsmi_topo_get_numa_affinity()
Given a device index, return the corresponding NUMA node for the
device.
Also, add NUMA node tests to Sys Info Read test.

Change-Id: I0df4937470e6362e6737ccea568d4b3e5890c91a
2020-04-01 11:38:08 -04:00
Pruthvi Madugundu 241cdfdd01 Updating the hsa include directory symlink creation
- Symlink creation is corrected only for deb packages
- It is follow up package of http://git.amd.com:8080/c/hsa/ec/hsa-runtime/+/334403
- configure_file() is called to update the scripts with proper cmake variable values

Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: I0e833ead265166411e83593fd57265a9ab356904
2020-04-01 02:17:11 -07:00
eshcherb fd0db85008 Merge pull request #37 from rkebichi/patch-1
ostream ops for HIP
2020-03-31 13:14:21 -05:00
rkebichi a6878a7ce5 Update tracer_tool.cpp 2020-03-30 19:06:10 -04:00
rkebichi 3ab6e03bda Update tracer_tool.cpp 2020-03-30 17:02:59 -04:00
rkebichi eabcc06785 Update CMakeLists.txt
Adding ostream ops for HIP.
2020-03-30 16:59:11 -04:00
Evgeny aac37d4d1e fixing CPACK prefix to by just rocm root path
Change-Id: I8caf5832aa9536b1e891e07cb992dd5258b8755d
2020-03-29 01:09:11 -05:00
Evgeny 01bd142fd3 test scripts update 2020-03-28 22:01:09 -05:00
Evgeny 9f45b76a3d build and test scripts update 2020-03-28 21:39:31 -05:00
Evgeny 7be9a42ab3 fixing hsa intercept test
Change-Id: I2671dfc6a9bd3e01a0c926aa3ea367b8c7a0279e
2020-03-28 17:24:16 -05:00
Evgeny 9df9fddcfb PC sampling bringup
Change-Id: I0d041c4c8c3778f2c328cde38432bc72223706a3

pc sampling integration fix

Change-Id: Ia66ff876d2d99ec4d561daf8320b65d75f5cd2fe
2020-03-28 13:07:45 -05:00
Evgeny 4c921407ac hip streams trace prep changes
Change-Id: Ie1b53c2066b0bb8e35a94ecbe993b6106ca17d44
2020-03-27 16:46:25 -05:00
Evgeny d94a655237 update: test passed 2020-03-27 15:14:33 -05:00
Chris Freehill 7abe6dc1b2 Documentation update
Change-Id: I646cf3d2fd6064295937f7e727076532894d3514
2020-03-27 14:08:19 -05:00
Evgeny c77a6236e7 adding system info
Change-Id: I1f7d23bd7c7e317eed9e177f0c7681226be4bfca
2020-03-27 09:40:44 -05:00
Evgeny ef211a5adf packaging fix 2020-03-27 09:30:12 -05:00
Evgeny 5e5fe9917d normalizing trace comparison mechanism 2020-03-27 00:32:18 -05:00
Evgeny aaecb3dbbb cleanup 2020-03-26 11:51:56 -05:00