Commit Graph

13501 Commits

Author SHA1 Message Date
Kent Russell 33133ebd07 CMakeLists: Support static building of hsa-runtime
Remove the hard-coding of "SHARED" as the lib type, and move any
SO-specific linking to only happen if the .so exists in the first place

Change-Id: I3f0bfd5c03f19b2425423b4dc8eed8fd87acc1d6
2020-04-27 20:52:07 -04:00
Sean Keely 675f73cda9 Adapt to new LLVM location in repo build.
This will reenable incremental PSDB builds.

Change-Id: I2311c124b06b544202f7c1db31b6607f2580194e
2020-04-27 17:58:35 -04:00
Evgeny 1d638b6f79 test suite minor changes
Change-Id: I673055c74461c106b4f705c209e54d83b7d3fb17
2020-04-27 13:05:47 -05:00
Evgeny c1da03616e test suite minor changes
Change-Id: I673055c74461c106b4f705c209e54d83b7d3fb17


[ROCm/rocprofiler commit: 1d638b6f79]
2020-04-27 13:05:47 -05:00
Kent Russell ddd38deab7 Make thunk lib type be defined by cmake
Make the hsakmt library take the value from CMake regarding
static/shared
KFDTest automatically grabs the right one due to it checking the normal
shared folders. Tested locally (and via automation by the time that this
is merged)
Also set the default to building SOs if BUILD_SHARED_LIBS is not defined

Change-Id: I7f8b76a7e60f3b41e5981f472b388301ae09e2c6
Signed-off-by: Kent Russell <kent.russell@amd.com>
2020-04-27 13:52:42 -04:00
Austin Kerbow 87202d4408 Update IsaRegistry for backend changes
Changes in the compiler are being made to add controls for XNACK and SRAM ECC
for all targets which can support these features. By default the conservatively
correct settings of XNACK on and SRAM ECC on will be used. This change is to
facilitate these backend updates.

Change-Id: I2fd6b6bc1d32937737e7f56d8e08c70fe781c745
2020-04-25 04:45:28 -04:00
Evgeny 0c7b397e63 using python3
Change-Id: Ic8ea29dd1aeb6fe5731f739a7f2f58414401ce7a
2020-04-24 14:51:09 -05:00
Evgeny 468d509ba1 using python3
Change-Id: Ic8ea29dd1aeb6fe5731f739a7f2f58414401ce7a


[ROCm/rocprofiler commit: 0c7b397e63]
2020-04-24 14:51:09 -05:00
Evgeny 26d888fda4 minor change
Change-Id: I9ea899af4f8887677c52131bea502ab029f89cde
2020-04-24 13:56:08 -05:00
Evgeny ef5e111e3c minor change
Change-Id: I9ea899af4f8887677c52131bea502ab029f89cde


[ROCm/rocprofiler commit: 26d888fda4]
2020-04-24 13:56:08 -05:00
Kent Russell b72bbeac3e Fix naming conventions again for -dev package
Using the building OS isn't guaranteed, as we can theoretically build
RPMs in Ubuntu or DEBs in CentOS. Use CPack's DEB/RPM-specific variables
to get around this issue

Change-Id: I404246c070eac2c74b45ae4b763c612891d66de1
Signed-off-by: Kent Russell <kent.russell@amd.com>
2020-04-24 08:06:38 -04:00
Evgeny 990200988c fixing rocprof app exit code
Change-Id: Iff0d5fa66bc9a69e1a0bde9c85aa8c5e55b21834
2020-04-24 01:32:40 -05:00
Evgeny 974953df32 fixing rocprof app exit code
Change-Id: Iff0d5fa66bc9a69e1a0bde9c85aa8c5e55b21834


[ROCm/rocprofiler commit: 990200988c]
2020-04-24 01:32:40 -05:00
Sean Keely 7712c7e743 Correct IPC fragment validation.
IPC create must only be used on whole ROCr allocations.
Fragments were allowing handle creation with offsets.

Change-Id: I1faa96d36bc7a6199bdc2e3ff1b8871d1a36a2fa
2020-04-24 00:08:53 -04:00
Evgeny abcd2905e7 loader verbose prints
Change-Id: I99fcdcb0f06b58071a0ff13fbe468c23f7698410


[ROCm/roctracer commit: 5531a38d02]
2020-04-22 23:10:05 -05:00
Evgeny 5531a38d02 loader verbose prints
Change-Id: I99fcdcb0f06b58071a0ff13fbe468c23f7698410
2020-04-22 23:10:05 -05:00
Evgeny b1e22e9c5e kfd wrapper ld preload fix
Change-Id: Icad86f08662208282790988611dbde0ec730162a
2020-04-22 23:03:48 -05:00
Evgeny cafb061f2e kfd wrapper ld preload fix
Change-Id: Icad86f08662208282790988611dbde0ec730162a


[ROCm/rocprofiler commit: b1e22e9c5e]
2020-04-22 23:03:48 -05:00
Evgeny 3173448638 run script update
Change-Id: Iffa971ff68f31c4c751698ad962ddc2993455d13
2020-04-22 21:29:32 -05:00
Evgeny 55dfe8ec4b run script update
Change-Id: Iffa971ff68f31c4c751698ad962ddc2993455d13


[ROCm/rocprofiler commit: 3173448638]
2020-04-22 21:29:32 -05:00
Evgeny 59f557cb5c build script updating to support hip/vdi
Change-Id: I7f398bd5f57aedb4ba0aeae3be4e6f051c011f5a
2020-04-22 12:02:21 -05:00
Evgeny 5f963072c9 build script updating to support hip/vdi
Change-Id: I7f398bd5f57aedb4ba0aeae3be4e6f051c011f5a


[ROCm/rocprofiler commit: 59f557cb5c]
2020-04-22 12:02:21 -05:00
Evgeny 46fdb2ebef fixing cmake error message as fatal error
Change-Id: I9a378e1f70f77f2af8e53afe3abdb0b988b0f7bc
2020-04-21 22:34:14 -05:00
Evgeny c21e06124c fixing cmake error message as fatal error
Change-Id: I9a378e1f70f77f2af8e53afe3abdb0b988b0f7bc


[ROCm/rocprofiler commit: 46fdb2ebef]
2020-04-21 22:34:14 -05:00
Sean Keely b90bf473c1 Correct capture of PoolInfo::allocable_size_.
Change-Id: I80757bb36048bc15b928220aca0a1eb5d898ab22
2020-04-21 19:03:24 -05:00
Evgeny 1e2d370eb5 cmake update
Change-Id: I42f1864f46c468072c7b536bb0b40946f69314a1
2020-04-21 00:24:11 -05:00
Evgeny 0b6ba7390b cmake update
Change-Id: I42f1864f46c468072c7b536bb0b40946f69314a1


[ROCm/rocprofiler commit: 1e2d370eb5]
2020-04-21 00:24:11 -05:00
Evgeny 9f299597a3 changing hsa class rev
Change-Id: Ibd86f519c71edaca60fdc4f9cb7d9a230f5f3c6e


[ROCm/roctracer commit: d46e357aba]
2020-04-20 14:32:28 -05:00
Evgeny d46e357aba changing hsa class rev
Change-Id: Ibd86f519c71edaca60fdc4f9cb7d9a230f5f3c6e
2020-04-20 14:32:28 -05:00
Evgeny b5c11eab42 adding GPU targets variable
Change-Id: I46849cb7a8bf769379bc14be0f8dcb782ae65a37


[ROCm/roctracer commit: 76d8115dbb]
2020-04-20 13:14:53 -05:00
Evgeny 76d8115dbb adding GPU targets variable
Change-Id: I46849cb7a8bf769379bc14be0f8dcb782ae65a37
2020-04-20 13:14:53 -05:00
Evgeny a6013d2478 HIP libraries static definition
Change-Id: I7cd45b491f35d5890246f8d4b1ce358f62b4c682


[ROCm/roctracer commit: 95d05100a7]
2020-04-20 12:38:02 -05:00
Evgeny 95d05100a7 HIP libraries static definition
Change-Id: I7cd45b491f35d5890246f8d4b1ce358f62b4c682
2020-04-20 12:38:02 -05:00
Evgeny 1c71995aa2 adding KFD test
Change-Id: Ic9956b47c2cc7dc6643750ab88e97d4ee733fa4a


[ROCm/roctracer commit: e9045d889d]
2020-04-20 09:57:59 -05:00
Evgeny e9045d889d adding KFD test
Change-Id: Ic9956b47c2cc7dc6643750ab88e97d4ee733fa4a
2020-04-20 09:57:59 -05:00
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 b9921bd704 inc/ext installation fix
Change-Id: If8f42cc5fe6bd46c6b341cdb6649bbe5013f97ad


[ROCm/roctracer commit: 422dba832f]
2020-04-17 16:11:50 -05: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 cbe8c08bda adding HIP_PROF_HIP_API_STRING macro
[ROCm/roctracer commit: 0cd31f8295]
2020-04-14 13:12:52 -05:00