Commit Graph

13501 Commits

Author SHA1 Message Date
Evgeny da6feb0220 hsa_rsrc_factory sync
[ROCm/roctracer commit: 05315465cf]
2020-01-29 22:39:22 -06:00
Evgeny 05315465cf hsa_rsrc_factory sync 2020-01-29 22:39:22 -06:00
Evgeny 5ad59de101 git ignore generated inc/basic_ostream_ops.h
[ROCm/roctracer commit: 50b47449aa]
2020-01-29 22:21: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 915f2daa66 using CMAKE_CXX_COMPILER intead of gcc
[ROCm/roctracer commit: 89b292ee5c]
2020-01-28 14:21:39 -06:00
Evgeny 89b292ee5c using CMAKE_CXX_COMPILER intead of gcc 2020-01-28 14:21:39 -06:00
eshcherb bcaad7b9cf Merge pull request #32 from rkebichi/rkebichi-patch-2
Update gen_ostream_ops.py

[ROCm/roctracer commit: 67ff5cd666]
2020-01-28 14:14:44 -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 0cf6fccc91 Merge branch 'amd-master' into rkebichi-patch-2
[ROCm/roctracer commit: 8c41ac3a10]
2020-01-28 14:14:31 -06:00
eshcherb 8c41ac3a10 Merge branch 'amd-master' into rkebichi-patch-2 2020-01-28 14:14:31 -06:00
rkebichi 55f7062e16 Update CMakeLists.txt
[ROCm/roctracer commit: e8e41428c7]
2020-01-28 12:48:14 -05:00
rkebichi e8e41428c7 Update CMakeLists.txt 2020-01-28 12:48:14 -05:00
Evgeny 2bc58d21f5 periodic trace flushing
[ROCm/roctracer commit: c73b98c2c5]
2020-01-27 20:42:22 -06: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 b7361ba5bd rocprof flush-rate option
Change-Id: I130f83f6a671451ee0cb34b4e7b53e738847c81f


[ROCm/rocprofiler commit: 2bcf8f653d]
2020-01-27 20:27:24 -06:00
Evgeny a41e035ada control of trace buffer thread start
[ROCm/roctracer commit: f214221bb2]
2020-01-27 14:31: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 42a0939617 Update CMakeLists.txt
[ROCm/roctracer commit: d87ff09280]
2020-01-27 11:58:20 -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
Evgeny 035a887649 ROCP_PYTHON_VERSION env var
Change-Id: Id86ff687f107d01039ded5e26811fc7d19fa0c00


[ROCm/rocprofiler commit: 4bfdb0a3a1]
2020-01-24 14:22:52 -06:00
rkebichi 33fe5eeae1 Update CMakeLists.txt
[ROCm/roctracer commit: d30aabefe6]
2020-01-24 10:20:40 -05:00
rkebichi d30aabefe6 Update CMakeLists.txt 2020-01-24 10:20:40 -05:00
rkebichi c0510a4ffa Update gen_ostream_ops.py
[ROCm/roctracer commit: 2901da60a5]
2020-01-24 10:19:09 -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
Evgeny ed61b4f794 roctx: range begin missed error
Change-Id: I0e15d9a5642a840b6b0f82bbc78f16c4b019c553


[ROCm/rocprofiler commit: 0d35ec3acd]
2020-01-23 21:50:51 -06:00
eshcherb 9592266736 Update roctracer_spec.md
[ROCm/roctracer commit: fc7826533c]
2020-01-23 17:08:19 -06:00
eshcherb fc7826533c Update roctracer_spec.md 2020-01-23 17:08:19 -06:00
eshcherb ae2984801e Update roctracer_spec.md
[ROCm/roctracer commit: 8539272de8]
2020-01-23 17:07:42 -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 2c8940e2cb Update CMakeLists.txt
[ROCm/roctracer commit: cf2c9a2e6d]
2020-01-22 14:12:22 -05:00
rkebichi cf2c9a2e6d Update CMakeLists.txt 2020-01-22 14:12:22 -05:00
rkebichi f81ba8a700 Update gen_ostream_ops.py
[ROCm/roctracer commit: fff5d9833f]
2020-01-22 14:06:58 -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 542df70c81 Update gen_ostream_ops.py
[ROCm/roctracer commit: 547b36f9f6]
2020-01-17 11:23:01 -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 2c51968f3b roctx start/stop minor changes, code cleanup
[ROCm/roctracer commit: 36a2df3edf]
2020-01-15 15:24:44 -06:00
Evgeny 36a2df3edf roctx start/stop minor changes, code cleanup 2020-01-15 15:24:44 -06:00
Evgeny db7b5a4a29 filtering start/stop callback if already started/stopped
[ROCm/roctracer commit: 1c79061bb3]
2020-01-15 12:57:28 -06:00