Qingchuan Shi
ce6aee01ed
Add APIs to support debugging vm fault
...
1. Add hsa ext api hsa_amd_register_vmfault_handler for debugger to register callback in case of VM fault.
2. Extend hsa_ven_amd_loader API to:
(1) iterate loaded code objects in executable:
hsa_ven_amd_loader_executable_iterate_loaded_code_objects
(2) get loaded code object info:
hsa_ven_amd_loader_loaded_code_object_get_info
3. Make the id of hsa_queue the same as the one used in communication with thunk (for amd_aql_queue)
Change-Id: I68910809e59e24297350d262606f00e96c14bcbd
2017-10-28 21:48:26 -04:00
Sean Keely
6ee2ccb08b
Fix error message description.
...
Change-Id: I32efed68e970a4882aca9decbbcda3fcd5c5cb43
2017-10-24 21:52:21 -05:00
Sean Keely
5a4ab91be1
Set doorbell kind code for gfx9+ device enqueue.
...
Change-Id: I93c4cea677ae51f97ac768614333743fb26b2f54
2017-10-21 11:08:44 -04:00
Sean Keely
a8d818a6bc
Improve build system handling of non-default directory layouts.
...
Adds the thunk include and lib paths to the cache, removes paths
to indicator files from the cache, uses the cached path directory
(if any) as a search hint for indicator files.
Change-Id: I0859faa8d229a97abfaacb408d2c831e317aed5f
2017-10-21 11:08:15 -04:00
Sean Keely
3cef9b1a04
Improve unhandled exception error reporting in debug builds.
...
Change-Id: Ia92d1a93163105d817a2147d96f2edd399e2b70d
2017-10-21 11:08:01 -04:00
Sean Keely
737966eb25
Fix memory leak in exception path.
...
Change-Id: Iad5f035cd1909be4a8f1a1f5dd7ca5abec0694b4
2017-10-21 11:08:00 -04:00
Chris Freehill
5a3230af66
Undo temporary namespace change
...
Change-Id: I7f4c06f7037713db855b51367256cf4c7ba41860
2017-10-20 20:02:13 -05:00
Chris Freehill
50a3d9402a
Temporary change to namespaces to adjust for smi change
...
Change-Id: Ic91bfb678912a82214f0a462a4b57e531f12977a
2017-10-20 13:12:06 -04:00
Ramesh Errabolu
dccbc9f2af
Changes to support surfacing of link weight as part of link info
...
Change-Id: I1c0705a9374af1245f0419c51beded0d7ee10639
2017-10-20 12:09:31 -04:00
Chris Freehill
a7cbe78366
Use Major/Minor/Step device numbers to differentiate gfx devices
...
Change-Id: I0901871971a5b33018917ada6c0e69ac7aa91944
2017-10-13 16:18:24 -04:00
Sean Keely
4f299a9909
Capture more memory allocation types with the 2MB allocator.
...
TensorFlow was running out of VRAM due to padding up allocations
from legacy memory APIs. These allocations have been added to
the fragment allocator to improve VRAM utilization.
Change-Id: Ic680fff576a0434b3b17a4c91746da44e09957fa
2017-10-12 23:22:10 -04:00
Ramesh Errabolu
703b1466c1
Update Copy requests involving all pools i.e. options -a or -A
...
Change-Id: I0c8d8fbb39f43cd6a1f84ae6ae32337fa9b1f5e2
2017-10-10 13:01:46 -04:00
Evgeny
fd99e909ff
aqlprofile API: enabling privilege memory related counters
...
Change-Id: I28a24ad1a3ce78c5d8a6319635ae1ffd392ab690
2017-10-09 17:34:54 -05:00
Chris Freehill
75eb3316aa
Make rocrtst use new rocm_smi library
...
Change-Id: Id688d6d6d5ff106a23f5b55eaca4e723c39433a3
2017-10-06 09:41:10 -05:00
Ramesh Errabolu
c2caa5ae2c
Benchmark copy of data from one pool to another pool either in
...
one or both directions. Users can enumerate the pools reported
by system to specify which pools serve as source / destination
Change-Id: I8e6d0adb3743b3328dd3ce9152762ca840ea613b
2017-10-04 20:53:25 -04:00
Ramesh Errabolu
34602f7e95
Adding kernels to read / write buffers
...
Change-Id: Icad95c084e0fcd0bd9f86154e23ac8f54c24afbe
2017-10-04 20:33:48 -04:00
Sean Keely
9ba83d83f7
Release cached memory blocks when memory allocation fails and retry.
...
Change-Id: I6d96e136e147d8ffe9ff7baec26b4b5a678b739f
2017-10-03 20:12:05 -04:00
Ramesh Errabolu
2cab8307b9
Cmake project to build Rocm Code Objects
...
Change-Id: If3a631615316c203318bb5ae1df328a66e2919b1
2017-10-03 17:53:56 -04:00
Chris Freehill
0adfe5a18e
Temporarily diable Max Memory alloc. test
...
Change-Id: I13cfc77bd5b823354e60a3023356255c72c1fd6c
2017-10-03 00:19:08 -04:00
Chris Freehill
c8b92c5087
Add IPC test to rocrtst
...
Change-Id: I6a40375790a184df11afc88b863cafc3d244e92a
2017-10-01 11:01:31 -04:00
Chris Freehill
3fa0b7e5b4
Fix build error in release version
...
Change-Id: I5b8378e4e771369ff2b2cc64ddfb44dde38d8d44
2017-09-28 23:47:51 -04:00
Sean Keely
e9a6f2c3e6
Support hsa_amd_agents_allow_access on page fragments.
...
Since access may only be manipulated on whole pages, suballocator fragments must cooperate to set the page's access.
Since the KFD does not migrate memory on access changes this implementation makes agent access sticky across the requests in a fragmented page.
Change-Id: I88479ed45fb40e9782b704526a7b8ffb22e7bd76
2017-09-27 19:04:04 -05:00
Evgeny
0e88414f5c
removing graphics specific block RMI, ennabling memory related blocks
...
Change-Id: I477adc49b9ee3c8593c193bdc69c0deb4a9726e1
2017-09-25 10:49:22 -05:00
Sean Keely
476c8e36bf
Fix assert in simple_heap.
...
Also add comments to clarify pointer info constraints.
Change-Id: I8d07831a0e953d667c84c96fe53ed07c18ba115c
2017-09-21 00:47:18 -04:00
Evgeny
fcaecfee80
adding hsa_ven_amd_aqlprofile.h to the packaging
...
Change-Id: I3b69396e3cea129106d47be53218213e29de9843
2017-09-20 14:40:49 -04:00
Sean Keely
30fce248c6
Enable use of CLOCK_MONOTONIC_RAW for post 4.4 kernels.
...
Change-Id: I3c1f27c7e639df5128c36d81f715fa16e6c1cf13
2017-09-20 14:28:23 -04:00
Chris Freehill
7d46a02df4
Use relative dir. instead of abs. (2nd instance)
...
Change-Id: I778a59e94efdd0845249473d92eaedd172429a48
2017-09-19 21:38:38 -04:00
Chris Freehill
7d84190c4e
Use rel. dir instead of abs. in CMake;Have a default number if iterations
...
Change-Id: I097fd229338ed520196cc4ed1ef1d00fe538e50c
2017-09-19 14:13:49 -04:00
Chris Freehill
2d58324ac8
Use relative path for symlink instead of absolute
...
Change-Id: I165f38df43afd554f022bb3bac54546c7bc5e806
2017-09-19 09:25:43 -04:00
Sean Keely
9dfdce5b3c
Improve branch elimination in ScopedAcquire.
...
GCC can't reasonably be told that the lock ptr isn't null. Adding a private bool
allows the branch to be eliminated, along with the bool.
Change-Id: I0605d69474d6a6e6951be93c0af1d8caf3f77124
2017-09-19 06:08:36 -04:00
Sean Keely
4275661682
Add env key to disable 2MB suballocation.
...
Change-Id: Icca3041c3578aa180a656c01aae62f2ad6e8b583
2017-09-19 06:08:36 -04:00
Sean Keely
117be0b55a
Add suballocator for ordinary VRAM allocations smaller than 2MB.
...
Track pointer info for sub 2MB fragment allocations in allocation_map_.
Add fragment support to IPC.
Change-Id: I00cfc2e2fa289aac90a4718c392f9bb056a61a87
2017-09-19 06:08:36 -04:00
Chris Freehill
ae4a9c4d91
Remove reliance on env. variables to build rocrtst
...
Change-Id: I451dc9da4e810db51a4ec19e17a9b5206d09a224
2017-09-16 23:58:20 -04:00
hthangir
87d2df3da3
Use non-RAW version in clock_getres to workaround bug in older kernels
...
Change-Id: Ice0606a42cd7054f0804baf4af3521ffae3b7d50
2017-09-14 13:56:15 -05:00
Chris Freehill
b4f2e8d8f1
Remove use of tools library
...
Change-Id: I80eb95987e1e91c67bd6c3e4b12df934860940f1
2017-09-13 13:49:56 -05:00
Chris Freehill
0cb7db7d7e
Adjust CMakefile to use defines instead of env. vars.
...
Change-Id: If5e97269774416eb65ab2d6d3f9e299b950c63a4
2017-09-13 09:33:18 -04:00
Chris Freehill
80a7bdf66b
Modified to build within Jenkins
...
Change-Id: I70c9c6b690f198c41641432478343d3714e26ab0
2017-09-08 12:57:23 -05:00
Sean Keely
f1a661dedb
Report tools library load failures in debug builds.
...
Change-Id: Ie1ff313e929fc46134e58730a1d370c5d7ace8db
2017-08-31 21:32:48 -04:00
Laurent Morichetti
0f05ef73ac
Include <errno.h> for EBUSY
...
Change-Id: I9fa3417445866f3ce37af2169f623afa8e92e873
2017-08-31 07:32:51 -07:00
Chris Freehill
92e46584f8
Async mem. copy test with NUMA awareness
...
Change-Id: If655ac4c087be2d379e868aad83812f2437d78b9
2017-08-30 21:35:37 -04:00
Ramesh Errabolu
3980b4268b
Add Iommu Perf Cntrs
...
Change-Id: I1cf3f00a959a923462634a62263707a267ae18af
2017-08-28 12:57:11 -05:00
Evgeny
09c732c2f9
aqlprofile api: adding gfx8 mc counters
...
Change-Id: I84dc06c24b7961dfe665cf7e2ae6cc9ae3b7326b
2017-08-23 15:23:05 -05:00
Sean Keely
0cb1e8cb35
Correct vm_fault signal cleanup.
...
Change-Id: Id2f14b911e3991a76771425bc09f38a613280e6b
2017-08-18 22:12:38 -04:00
Chris Freehill
c85322d93d
Remove dependency on hsa-runtime-tools
...
Change-Id: Ic4ce2bcbf1176e7eb859db39f21e7185691837e1
2017-08-17 15:39:35 -04:00
Evgeny
fb4afca8c3
AqlProfile API, commenting out hanging GFX9 blocks, ATC, GCEA, RPB
...
Change-Id: I411fb33f77c9538ca236b9b6b09c7dfe75220c02
2017-08-15 12:44:00 -05:00
Sean Keely
dec5c52e07
Simplify pointer info version check.
...
Change-Id: I0ed363f1261ffc041547f313970ca67298ace56c
2017-08-12 03:14:39 -04:00
Sean Keely
c9642cf7af
Initial IPC signal support.
...
Added an API for creating signals with attributes.
Added two APIs for IPC operations on signals.
Initial use of exceptions for error handling.
Add ref counting to signals.
Removed spin loops from signal destructors.
Signals are no longer to be destroyed with delete, use DeleteSignal instead.
Added delete safety to doorbells.
Added secondary hsa_signal_t -> Signal* translation path for IPC enabled signals.
Change-Id: Id59065d002f0c2566b0a9425694da2ed27cb7d7f
2017-08-11 18:41:34 -05:00
Sean Keely
2732b18092
Initial exception support for signals.
...
Also separate signal ABI block allocations from the runtime interface object.
Change-Id: If16763338db664f29163a1348f8f4c38cf0597b2
2017-08-11 18:41:34 -05:00
Sean Keely
d6acd0edfc
Update ipc test to use IPC signals.
...
Change-Id: Id5984093de45b08261d3196cc6fc3d597324edf4
2017-08-11 17:29:55 -04:00
Evgeny
287afd3a52
adding aqlprofile member to HsaApiTable
...
Change-Id: Id674186dfa2e83295a51f770ccc0400f1cb51a98
2017-08-09 16:09:39 -05:00