Commit Graph

13501 Commits

Author SHA1 Message Date
Evgeny 65d8c3be39 process/thread IDs in API records 2018-11-23 00:09:28 -06:00
Ramesh Errabolu 28c3f9a269 Initialize queue buffer with Invalid Pkt Headers
Change-Id: I4166f1359746ee6829b730bac2db358af72ab16e
2018-11-21 19:09:10 -05:00
Mark Searles 8ea836017a Force object code v2 until v3 is supported
Change-Id: I4c2a64bf9bd515686d1f1d90aece2a9ac40e5685
2018-11-21 10:06:08 -08:00
changzhu c15cf2e9c3 kfdtest: fix SDMACopyParams build error on redhat 7.2 in KFDTestUtilQueue.cpp
In file included from /usr/include/c++/4.8.2/algorithm:62:0,
                 from /home/jenkins/libhsakmt/tests/kfdtest/src/KFDTestUtilQueue.cpp:24:
/usr/include/c++/4.8.2/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<SDMACopyParams*, std::vector<SDMACopyParams> >; _Tp = SDMACopyParams; _Compare = bool (*)(SDMACopyParams&, SDMACopyParams&)]’:
/usr/include/c++/4.8.2/bits/stl_algo.h:2296:78:   required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<SDMACopyParams*, std::vector<SDMACopyParams> >; _Compare = bool (*)(SDMACopyParams&, SDMACopyParams&)]’
/usr/include/c++/4.8.2/bits/stl_algo.h:2337:62:   required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<SDMACopyParams*, std::vector<SDMACopyParams> >; _Size = long int; _Compare = bool (*)(SDMACopyParams&, SDMACopyParams&)]’
/usr/include/c++/4.8.2/bits/stl_algo.h:5499:44:   required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<SDMACopyParams*, std::vector<SDMACopyParams> >; _Compare = bool (*)(SDMACopyParams&, SDMACopyParams&)]’
/home/jenkins/libhsakmt/tests/kfdtest/src/KFDTestUtilQueue.cpp:351:66:   required from here
/usr/include/c++/4.8.2/bits/stl_algo.h:2263:35: error: invalid initialization of reference of type ‘SDMACopyParams&’ from expression of type ‘const SDMACopyParams’
    while (__comp(*__first, __pivot))
                                   ^
/usr/include/c++/4.8.2/bits/stl_algo.h:2266:34: error: invalid initialization of reference of type ‘SDMACopyParams&’ from expression of type ‘const SDMACopyParams’
    while (__comp(__pivot, *__last))
                                  ^

Change-Id: I0fce0c7e6d0a0ce93b1e6522ee8f216615765568
Signed-off-by: changzhu <Changfeng.Zhu@amd.com>
2018-11-21 17:23:03 +08:00
Chris Freehill 499fcac759 Merge pull request #5 from cfreehill/get_set_pcie
Get and set PCIe transaction rate
2018-11-20 16:03:48 -06:00
Oak Zeng af5b320c47 Add test to allocate SDMA queue on specific engine
Change-Id: I5b5140e4119fc01db250d63cca7389cf80ec0d16
Signed-off-by: Oak Zeng <ozeng@amd.com>
2018-11-20 11:17:43 -05:00
Chris Freehill bc200d205e Add get and set routines for PCIe bandwidth 2018-11-19 17:01:49 -06:00
shaoyunl d8009b4fd3 KFDTest: fix failure when run KFDTest on multi-GPU small bar system
On small bar multi-gpu system, hsaKmtMemoryMapToGPU will fail due to latest
kernel P2P sanity check. Swith to use hsaKmtMemoryMapToGPUNodes to fix
the failure

Change-Id: Id8b6329d1243df0e908cc9a171b5c7f9156f4a8b
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2018-11-19 16:09:31 -05:00
shaoyunl 29b45b8c0a Thunk: make scratch memory only map to its own GPU
Map scratch memory to the GPU that specified when allocate the memory

Change-Id: I788f9ef0dccb63b894a75e75cac5f94a60d7ec48
Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
2018-11-19 10:26:31 -05:00
Sean Keely 8e4177382a Check max wave scratch limits.
HW has limited bits for wave scratch base address stride.  Enforcement
prevents programs with larger than supported scratch allocations from
running and clobbering neighboring scratch space.

Change-Id: I574da888e9d1d5e290a9c0025ba13b5ef9f1e5c0
2018-11-16 20:59:20 -05:00
Chris Freehill 9c897ab86d Add get and set routines for PCIe bandwidth 2018-11-16 15:55:38 -06:00
Sean Keely 269be0be2e Disable forced explicit selection of public vs internal HSA interfaces.
Temporary to reenable OCL builds on TC.

Change-Id: Ia81f2f9a9dd10ae8ce9627313247a586a8711584
2018-11-16 15:26:26 -06:00
Konstantin Zhuravlyov a447d79430 Fix dynamic relocations:
- Process dynamic relocation even if there is
    no symbol associated to it.

Change-Id: Iaefee682ee52f5acda8280e5764e6d5fd992774a
2018-11-14 15:25:41 -05:00
eshcherb b4113a1023 Update README.md
[ROCm/roctracer commit: 8e618d15b1]
2018-11-13 19:01:26 -06:00
eshcherb 8e618d15b1 Update README.md 2018-11-13 19:01:26 -06:00
eshcherb 7a17b66351 Update README.md
[ROCm/roctracer commit: 8a093089a0]
2018-11-13 18:52:33 -06:00
eshcherb 8a093089a0 Update README.md 2018-11-13 18:52:33 -06:00
eshcherb b15f765d17 Update README.md
[ROCm/roctracer commit: 036f7d48a1]
2018-11-13 18:51:56 -06:00
eshcherb 036f7d48a1 Update README.md 2018-11-13 18:51:56 -06:00
Evgeny df58b9a80d preloading local libmcwamp_hsa.so
[ROCm/roctracer commit: b7467b9995]
2018-11-13 18:44:44 -06:00
Evgeny b7467b9995 preloading local libmcwamp_hsa.so 2018-11-13 18:44:44 -06:00
Evgeny 3bfaddf6a4 packaging
[ROCm/roctracer commit: 48d69df3ee]
2018-11-13 17:09:58 -06:00
Evgeny 48d69df3ee packaging 2018-11-13 17:09:58 -06:00
Oak Zeng acb80d7583 Create SDMA queue on specific engine
Change-Id: Iece03795510d66b03324174203faa0ac9eb4fb7d
Signed-off-by: Oak Zeng <ozeng@amd.com>
2018-11-13 14:52:57 -05:00
Oak Zeng 8d65e72045 Move m_Type to a local variable
BaseQueue class has a member function GetQueueType so m_Type
is duplicated.  m_Type is only used in one function. Move it to
a local variable.

Change-Id: Ice144cf723178dd628cb49261c23d10605f9ee7d
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2018-11-13 14:52:17 -05:00
Oak Zeng 58b95e0a9d Create SDMA queue on specific engine
Change-Id: Id651ececda55b81b45e991bd8e6616674be48d8e
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2018-11-13 14:52:17 -05:00
Oak Zeng 5173e71810 Add more SDMA queue type
Those new types are used to create SDMA queue on specific engine

Change-Id: I91c3bcc14fef7404cf42b256a18651432e171091
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2018-11-13 14:52:01 -05:00
Oak Zeng 055f7c9c2c Use latest kfd_ioctl.h file
Change-Id: Icd7da4a305581c6857e17d59fbd0c3bd5101df3b
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
2018-11-13 14:51:46 -05:00
Sean Keely 4e8597681b Cache KFD Events used by user allocated InterruptSignals.
Change-Id: I7f102f880fea9c78febe28cd262f93ee77f03184
2018-11-12 22:37:42 -06:00
Sean Keely 8323b2e1d7 Add pooling for Signal ABI blocks (SharedSignal).
Makes better use of memory and greatly reduces mmap count.

Change-Id: Ib444cd1ccd144986adbcc7cec297a966e2c08bc7
2018-11-12 22:37:28 -06:00
Chris Freehill 861c2c2e33 Add rsmi_dev_busy_percent_get()
Also: correct some comments, ifdef out unused code
2018-11-12 17:25:14 -06:00
Felix Kuehling 5e4e19d47b libhsakmt: Distinguish EPERM and EACCES
EPERM means "operation not permitted" and is returned when CGroup
access checks fail. EACCES means "permission denied" and is returned
when the device file permission bits or access control list don't
allow access.

EPERM can fail silently, since we assume the administrator disabled
a device on purpose in the CGroup. EACCESS should produce an error
message and an info message to check the device file permissions.

Change-Id: Iee4c5584c5fdc4e113c3d760dede6661097b4341
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
2018-11-12 17:06:18 -05:00
Evgeny 722fa91624 pre/post package scripts install dir name fix and CPACK_PACKAGING_INSTALL_PREFIX
Change-Id: I415875572829dadc9996dd7561418a77ec3fe1bb
2018-11-12 12:39:03 -06:00
Evgeny b62929a0bf pre/post package scripts install dir name fix and CPACK_PACKAGING_INSTALL_PREFIX
Change-Id: I415875572829dadc9996dd7561418a77ec3fe1bb


[ROCm/rocprofiler commit: 722fa91624]
2018-11-12 12:39:03 -06:00
eshcherb c998318f2e Update README.md
[ROCm/roctracer commit: 3ddb17864f]
2018-11-12 11:26:10 -06:00
eshcherb 3ddb17864f Update README.md 2018-11-12 11:26:10 -06:00
Evgeny a4860cfb00 pre/post package scripts install dir name fix
[ROCm/roctracer commit: a52d7b36a9]
2018-11-12 10:16:38 -06:00
Evgeny a52d7b36a9 pre/post package scripts install dir name fix 2018-11-12 10:16:38 -06:00
eshcherb b5979a4cf4 Update README.md
[ROCm/roctracer commit: 48db2cddc3]
2018-11-12 00:19:31 -06:00
eshcherb 48db2cddc3 Update README.md 2018-11-12 00:19:31 -06:00
Evgeny e1f1d611de activity id fix
[ROCm/roctracer commit: 270613e3a6]
2018-11-11 23:33:36 -06:00
Evgeny 270613e3a6 activity id fix 2018-11-11 23:33:36 -06:00
eshcherb 8b2082da7f Update README.md
[ROCm/roctracer commit: 1bceac618b]
2018-11-11 18:40:07 -06:00
eshcherb 1bceac618b Update README.md 2018-11-11 18:40:07 -06:00
Evgeny b28c3cf091 cmake packaging fix
[ROCm/roctracer commit: 44986fcbda]
2018-11-11 00:53:10 -06:00
Evgeny 44986fcbda cmake packaging fix 2018-11-11 00:53:10 -06:00
Evgeny c0c0407917 package generators deb/rpm/tgz
[ROCm/roctracer commit: 6b3719051f]
2018-11-10 21:33:34 -06:00
Evgeny 6b3719051f package generators deb/rpm/tgz 2018-11-10 21:33:34 -06:00
Evgeny baf2f25bac packages deb/rpm/tgz
Change-Id: I1de06a8ad19a5c44baf45a76fa34db570899c72d
2018-11-10 21:28:51 -06:00
Evgeny 54192625eb packages deb/rpm/tgz
Change-Id: I1de06a8ad19a5c44baf45a76fa34db570899c72d


[ROCm/rocprofiler commit: baf2f25bac]
2018-11-10 21:28:51 -06:00