Commit Graph

8920 Commits

Author SHA1 Message Date
rkebichi b68209078b Create MatrixTranspose_ctest_trace.txt 2020-01-31 15:58:54 -05:00
rkebichi 4fbb8e4863 Update CMakeLists.txt 2020-01-31 15:53:18 -05:00
rkebichi ea1eb05ecd Update run.sh 2020-01-31 15:51:30 -05:00
rkebichi e3879bc5c1 Update run.sh 2020-01-31 11:14:29 -05:00
rkebichi 941622e6b9 Create parse_trace.py
script to parse roctracer .txt trace files
2020-01-31 11:01:11 -05:00
Kent Russell f2b8965d7b Fix upgrade for new package name in RPM
The name changed and thus will end up throwing errors if an upgrade is
done, compared to a plain install

Change-Id: Ibc7876a66a414034a00f924cdd750e6a08d6c9cc
2020-01-31 10:41:35 -05:00
Evgeny 5615ade977 hsa_rsrc_factory sync
Change-Id: Idecbc0cdad6068eae5259cb043bdf5746b430aec
2020-01-30 19:29:59 -06:00
Chris Freehill 842bd29568 Merge "Ensure string is non-empty before calling stoul or stoi" into amd-master 2020-01-30 20:16:56 -05:00
Srinivasan Subramanian 29d55e001a Changes for multiple ROCm installation
1. Support multiple rocm installtion
2. Support shared library versioning.

Change-Id: Id5c25b90abed084e8fe8cb7c374c2d4384653bbf
2020-01-30 11:08:57 -08:00
Evgeny f22bf1e972 constructor partial initialization 2020-01-29 23:46:38 -06:00
Evgeny e9087dcd86 saving time for roctx records 2020-01-29 23:39:08 -06:00
Evgeny b43eef92be hsa_rsrc_factory sync test 2020-01-29 22:44:41 -06:00
Evgeny 05315465cf hsa_rsrc_factory sync 2020-01-29 22:39:22 -06:00
Evgeny 50b47449aa git ignore generated inc/basic_ostream_ops.h 2020-01-29 22:21:22 -06:00
Yong Zhao 4f2ff25a3d kfdtest: Enable some tests on gfx1xxx series
Those tests are currently all passing.

Change-Id: I233afe33e8275d482bab5b5590b856fce49af76d
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
2020-01-29 21:23:05 -05:00
Chris Freehill f748868818 Ensure string is non-empty before calling stoul or stoi
Change-Id: I2c6314fb86d3bba8fd6aab932dbb989263fa8542
2020-01-28 17:05:14 -06:00
Evgeny 89b292ee5c using CMAKE_CXX_COMPILER intead of gcc 2020-01-28 14:21:39 -06:00
eshcherb 67ff5cd666 Merge pull request #32 from rkebichi/rkebichi-patch-2
Update gen_ostream_ops.py
2020-01-28 14:14:44 -06:00
eshcherb 8c41ac3a10 Merge branch 'amd-master' into rkebichi-patch-2 2020-01-28 14:14:31 -06:00
rkebichi e8e41428c7 Update CMakeLists.txt 2020-01-28 12:48:14 -05:00
Evgeny c73b98c2c5 periodic trace flushing 2020-01-27 20:42:22 -06:00
Evgeny 2bcf8f653d rocprof flush-rate option
Change-Id: I130f83f6a671451ee0cb34b4e7b53e738847c81f
2020-01-27 20:27:24 -06:00
Evgeny f214221bb2 control of trace buffer thread start 2020-01-27 14:31:24 -06:00
Philip Yang 5858aa17a9 libhsakmt: Ignore mbind failure if flag NoSubstitute = 0
From Thunk spec, flag NoSubstitute = 0, if specific memory type is not
available on node, allocation may fall back to other memory that can
replace it on that node. mbind return failure if no memory available on
the specific node, we should ignore the mbind failure for this case.




Change-Id: I651a1bedf1852330604e56965cc17862403ebf87
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2020-01-27 13:27:37 -05:00
rkebichi d87ff09280 Update CMakeLists.txt 2020-01-27 11:58:20 -05:00
Evgeny 4bfdb0a3a1 ROCP_PYTHON_VERSION env var
Change-Id: Id86ff687f107d01039ded5e26811fc7d19fa0c00
2020-01-24 14:22:52 -06:00
rkebichi d30aabefe6 Update CMakeLists.txt 2020-01-24 10:20:40 -05:00
rkebichi 2901da60a5 Update gen_ostream_ops.py 2020-01-24 10:19:09 -05:00
Evgeny 0d35ec3acd roctx: range begin missed error
Change-Id: I0e15d9a5642a840b6b0f82bbc78f16c4b019c553
2020-01-23 21:50:51 -06:00
eshcherb fc7826533c Update roctracer_spec.md 2020-01-23 17:08:19 -06:00
eshcherb 8539272de8 Update roctracer_spec.md 2020-01-23 17:07:42 -06:00
Eric Huang 634b30119a kfdtest: fix infinite loop in sdma multicopy
when variable interval become zero, the loop of while (timeConsumption >= interval)
will be a infinite loop. The fix is to avoid that case.

Change-Id: I8fd07296925300bace5ab7d3da86482b6d8b0d03
Signed-off-by: Eric Huang <JinhuiEric.Huang@amd.com>
2020-01-23 14:54:23 -05:00
rkebichi cf2c9a2e6d Update CMakeLists.txt 2020-01-22 14:12:22 -05:00
rkebichi fff5d9833f Update gen_ostream_ops.py 2020-01-22 14:06:58 -05:00
Sean Keely 3e9aca0f34 Support stripped binaries and remove unneeded attributes.
Attribute optimize(0) doesn't appear to be helpful helpful.  This
prevents optimization in the function but not at call sites to the
function.  The function may still be inlined since it has no side
effect (in some cases that we currently don't support).

Having a side effect prevents a call site optimization that allows
removal of a noinline function call with no side effect.  Call site
optimization should only happen (in GCC at least) when using whole
program optimization so this may be stronger than we strictly need.

Also added _amdgpu_r_debug to the exported symbol list (global) and
switched to the standard macro for an exported symbol (HSA_API).
Without being in the global list the debugger will not find this
symbol if the binary has been stripped.

Change-Id: Ieb00175ccc55fda4491deee44711cd55b3f24aeb
2020-01-21 20:08:02 -05:00
Felix Kuehling 87e10cd0b4 libhsakmt: Improve error handling in child process
Check for errno == EBADF in kmtIoctl to detect misuse of the kfd_fd
in a forked child process.

Detect being in a forked child process pro-actively by implementing
a pthread_atfork callback.

Make sure all mutexes get reinitialized in the child process to avoid
deadlocks.

Check for being in a forked child process in CHECK_KFD_OPENED so that
all hsaKmt functions will return the appropriate status
HSAKMT_STATUS_KERNEL_IO_CHANNEL_NOT_OPENED.

Update InvalidKFDHandleTest to expect that error code.

Change-Id: I0238e5fba344dcaa454e97a35db2e2dcc8d1f607
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2020-01-20 18:01:21 -05:00
rkebichi 547b36f9f6 Update gen_ostream_ops.py 2020-01-17 11:23:01 -05:00
Freddy Paul 4b2256ac21 ADD libhsakmt.so RUNPATH for SLES
For SLES libhsakmt.so is located in <ROCm install>/lib64

Change-Id: I038dd80b65b4a493ac37981649b02f1b35caea88
2020-01-16 22:20:14 -05:00
Chris Freehill d00b9ac07d Security improvements
Improvements include
* adding additional build flags that warn about stack-smashing
and type conversion errors
* run-time checks for valid function input values and adquate
space for the result of arithmetic operations.
* make sure default case for switch statements do something
besides just assert
* disable using env. var. debugging in release mode

Change-Id: I5f048310c5c56e05d9ec31bcc273404d6a0dd646
2020-01-16 14:56:27 -06:00
Laurent Morichetti 19e1fb3a4e Fix a build error when compiling with clang
Check __clang__ before __GNUC__ as clang defines both.

Change-Id: I9963f8e0665efb4cb08bd3886fb38fee42dd9861
2020-01-15 18:52:53 -08:00
Evgeny 36a2df3edf roctx start/stop minor changes, code cleanup 2020-01-15 15:24:44 -06:00
Evgeny 1c79061bb3 filtering start/stop callback if already started/stopped 2020-01-15 12:57:28 -06:00
Srinivasan Subramanian 54d94d02bd Avoid shared library conflicts across multiple ROCM version
Adding patch number based on ROCM build/release to have unique
file name for libraries across multiple versions of ROCM.

Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>

Change-Id: I58d665b0e7d577b5bd7a6000d1202a0242672727
2020-01-15 01:08:23 -05:00
eshcherb 1a5609c35d Update README.md 2020-01-14 10:32:05 -06:00
eshcherb 127cba886e Update README.md 2020-01-14 10:31:42 -06:00
Evgeny 5d2b23d751 queue callback start/stop methods
Change-Id: Idba6624bb177096ef879f53f6aec80283ca18ce5
2020-01-14 10:25:13 -06:00
Evgeny e7d0cf18c5 enable json generation for roctx trace alone
Change-Id: Ie95829087882f74f7a5c10fd682e7a7c24609d54
2020-01-14 10:25:13 -06:00
Evgeny 9bdd497a51 minor changes;
Change-Id: I4266d6af1adef66637b3c971fa21c800240a79ef
2020-01-14 10:25:13 -06:00
Qingchuan Shi d63886190f fix optimize(0) for clang.
Change-Id: I83bc57d42815f37445ae97bf6950147e3358ac45
2020-01-13 20:53:40 -05:00
Freddy Paul 287ac32661 Support installing multipel version of ROCm
Add ROCm release version into libraries and binaries to avoid
file name conflicts across releases(Phantom requriement).

Change-Id: I271e49e842a02cca79b02e8352059cec196c4415
2020-01-13 14:18:59 -05:00