Commit Graph

13501 Commits

Author SHA1 Message Date
Felix Kuehling c5cfb7e25b Move dGPU memory aperture initialization
Define dgpu_mem_init before it's used and keep the code close to the
rest of the aperture initialization code.

Change-Id: I14ad11a364524a15affee9186b1298ba7d56d2c9
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2018-03-09 15:00:12 -05:00
Evgeny f423e5f486 cosmetic change
Change-Id: I871e8260643a4409f7a471ea1575e9bb0a505f7f
2018-03-07 18:45:33 -06:00
Evgeny a900f3eda4 cosmetic change
Change-Id: I871e8260643a4409f7a471ea1575e9bb0a505f7f


[ROCm/rocprofiler commit: f423e5f486]
2018-03-07 18:45:33 -06:00
Evgeny a2ebcdf825 build/test adapting for ROCm packaging
Change-Id: I4bf855cd6f0eb8432194e20fce0ad4cd05692813
2018-03-07 15:08:20 -06:00
Evgeny a3ee673c82 build/test adapting for ROCm packaging
Change-Id: I4bf855cd6f0eb8432194e20fce0ad4cd05692813


[ROCm/rocprofiler commit: a2ebcdf825]
2018-03-07 15:08:20 -06:00
Sean Keely ac5ccb45b7 Use atomic variable for Runtime ref_count_.
Change-Id: Ic4d0ad9ff93d0cc52cfe2df006ee3436d5960b07
2018-03-06 03:45:14 -06:00
Evgeny 363700581a adding timestamps dispatch/begin/end/complete
Change-Id: I8c23e5f7ff75174243224ff008ba266553ee30c8
2018-03-05 20:59:01 -06:00
Evgeny 777eb116d4 adding timestamps dispatch/begin/end/complete
Change-Id: I8c23e5f7ff75174243224ff008ba266553ee30c8


[ROCm/rocprofiler commit: 363700581a]
2018-03-05 20:59:01 -06:00
Evgeny e009b48127 adding destructor
Change-Id: Ie55a17b637dff5e34c0488e5733101932e0feb5e
2018-03-05 16:08:52 -06:00
Evgeny 7b1d142d54 adding destructor
Change-Id: Ie55a17b637dff5e34c0488e5733101932e0feb5e


[ROCm/rocprofiler commit: e009b48127]
2018-03-05 16:08:52 -06:00
James Edwards d34b716a08 Merge pull request #2 from RadeonOpenCompute/install-packaging
Add install and packaging to CMakeList.txt file.
2018-02-28 16:59:10 -06:00
James Edwards f99ef9da4f Add install and packaging to CMakeList.txt file. 2018-02-28 16:57:14 -06:00
Sean Keely 31c05d2fc7 Add exception safety to Runtime::Acquire.
Change-Id: Ia2a9baf08bb56971412f1ac3914592612de5f134
2018-02-28 05:21:07 -06:00
Evgeny 1c8f767da4 profiling controll options 2018-02-27 13:32:11 -06:00
Evgeny c1b3fa7d52 profiling controll options
[ROCm/rocprofiler commit: 1c8f767da4]
2018-02-27 13:32:11 -06:00
Yong Zhao 15e525af45 Add pkg config support in the hsakmt-roct-dev package
Change-Id: Ida6b3083bfc9405ef9b6b8e426dc7dc51d61a811
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
2018-02-27 11:21:38 -05:00
Yong Zhao 2c426a026a Turn off the verbose building message
Change-Id: If4ebdb6f87fde9c3cc76b16c57e862bfb972ed5e
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
2018-02-26 18:17:13 -05:00
Philip Yang 105291849f Close shmem file handle, to fix file handle leak
kfdtest hsaKmtOpenKFD failed after 1019 loop if using --gtest_loop=-1,
because default max open file handle limit is 1024. Found shmem file handle
is not closed from lsof output.

Change-Id: I474de2bae6c03e879a219dedf5f18639118b73e5
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2018-02-23 10:50:52 -05:00
Jay Cornwall e2c353dc0d Allocate EOP queue local to GPU
On discrete GPUs place the EOP queue in VRAM. The reader/writer of this
queue is the CP and the size is small. Dispatch latency improves
through lower read latency in AQL completion phase.

Change-Id: Id8351dcddbd21fd7c7d699803c96434c9132db71
Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com>
2018-02-22 18:14:05 -05:00
Evgeny 33b3546fe4 adding queue destroy callback 2018-02-21 19:59:47 -06:00
Evgeny ff5b92b47b adding queue destroy callback
[ROCm/rocprofiler commit: 33b3546fe4]
2018-02-21 19:59:47 -06:00
Evgeny a9a5119399 contrctor/destructor changes, OnLoad/OnUnload functions, removed hsa_init()/hsa_shutdown() 2018-02-21 10:07:59 -06:00
Evgeny 6eef0003a5 contrctor/destructor changes, OnLoad/OnUnload functions, removed hsa_init()/hsa_shutdown()
[ROCm/rocprofiler commit: a9a5119399]
2018-02-21 10:07:59 -06:00
Oak Zeng 25170c3c57 Support ptrace access invisible vram
Invisible device memory is mmapped as PROT_NONE.
Normal CPU access to the memory is still not allowed but
struct vm_area_struct will be created for the memory address
so ptrace can access the memory via the vma.

Change-Id: I07c69208716c920ccce33e6b494b610b61a0a7c1
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2018-02-20 14:13:00 -05:00
Evgeny 52b3ce5845 metrix update 2018-02-19 18:50:28 -06:00
Evgeny 1621e666da metrix update
[ROCm/rocprofiler commit: 52b3ce5845]
2018-02-19 18:50:28 -06:00
Evgeny 0b0ce2d931 update 2018-02-19 18:18:51 -06:00
Evgeny 36434ee974 update
[ROCm/rocprofiler commit: 0b0ce2d931]
2018-02-19 18:18:51 -06:00
Chris Freehill 81c923b26f Reenable Memory_Max_Mem test
Change-Id: I2da50f886cd8d28d0f9ad8b8f77cfa13d392bf01
2018-02-13 17:37:25 -06:00
Evgeny fbc7de50f7 metrics and counter importing 2018-02-12 15:00:20 -06:00
Evgeny ef397b7d07 metrics and counter importing
[ROCm/rocprofiler commit: fbc7de50f7]
2018-02-12 15:00:20 -06:00
Chris Freehill 146b3871df Completely disable rocm-smi (take 2)
Change-Id: I68f403c539163bfe00ee2b59dbd36d1c6d7669f1
2018-02-12 06:43:47 -06:00
Chris Freehill bd0c4efc34 Completely disable rocm-smi from rocrtst until rocm-smi-lib is updated
Change-Id: I5cce06a2bbde7a3a48e391022c793a462794c6d1
2018-02-11 21:42:25 -06:00
Sean Keely 95c926059d Improve fragment map reporting format.
Change-Id: I85d09d085b08de46271ec902c766a8609a4b921a
2018-02-09 14:03:03 -05:00
Sean Keely 9212e7a09f Emit fragment map and thunk ptr info with VM faults.
Change-Id: If1302f674df7a636529c64bf66dfdda755a70c32
2018-02-09 14:02:26 -05:00
Sean Keely 0eb534e3cf Reduce to only one internal compute queue.
Change-Id: Ie42ecb3b242077624d74caeabfcd418dbbd9ff3e
2018-02-09 14:02:15 -05:00
Sean Keely bd5dd47ca1 Defer creation of internal queues and blits until first needed.
Change-Id: I2e61d7e102f38389d806d9eb24beda910573157b
2018-02-09 14:02:07 -05:00
Evgeny 78c432aee2 metrics fixes 2018-02-08 13:31:43 -06:00
Evgeny b9907b49ea metrics fixes
[ROCm/rocprofiler commit: 78c432aee2]
2018-02-08 13:31:43 -06:00
Harish Kasiviswanathan 7de0199e99 CMA: Initialize SizeCopied return parameter
UCX test cases are reporting uninitialized values when CMA fails. The
application should ideally ignore SizeCopied when the function fails but
it doesn't. This is leading to wrong diagnosis.

v2: Fill in partial SizeCopied in case of failure

Change-Id: I6b7e1c19a8b702ec91ca64201a3dda27bd897877
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
2018-02-08 12:46:40 -05:00
Evgeny 6560364df1 adding major and minor library versions 2018-02-07 09:41:17 -06:00
Evgeny 6960dcd77e adding major and minor library versions
[ROCm/rocprofiler commit: 6560364df1]
2018-02-07 09:41:17 -06:00
James Edwards b913795c31 : Fix compilation errors with gcc 7.2.1 for hsa runtime.
Change-Id: I3356388753ca78cc0f1e0c3188220d7f3f60283d
2018-02-07 09:22:39 -06:00
Evgeny 8a8d7ad814 ExecutePM4 queue full check fix
Change-Id: Id56ece6d3f5eab1ef3a2758922022f0996c1efe4
2018-02-05 19:35:39 -06:00
Chris Freehill 3449f7dea6 Don't support platform atomics for gfx9XX
Change-Id: I302c862494e221ae2b6b3e1a843f06586b0b28ba
2018-02-02 18:21:16 -05:00
Evgeny ff1e5b67a7 read API 2018-02-02 15:38:28 -06:00
Evgeny 4b7e5f51da read API
[ROCm/rocprofiler commit: ff1e5b67a7]
2018-02-02 15:38:28 -06:00
Evgeny a3fc58e966 minor change, const ptr 2018-02-02 15:14:15 -06:00
Evgeny fa134bbf4d minor change, const ptr
[ROCm/rocprofiler commit: a3fc58e966]
2018-02-02 15:14:15 -06:00
Evgeny 19676a74c9 minor change 2018-02-02 15:02:26 -06:00