Jay Cornwall
38fddca9fe
Share blit queue for device-to-device and device-to-host copies
...
Reduces the number of blit queues from 3 to 2, when SDMA is unavailable,
improving the availability of queue slots for applications.
Change-Id: I8860d2b6c6d6527494b9fc35d164099e1313886a
2016-06-21 16:59:36 -05:00
Christophe Paquot
c64f646711
Updated blit kernel code to use device accessible memory
...
for the kernel args.
Most image-related HSA conformance tests pass now
Many more ocltst/oclperf image ones pass too.
Change-Id: I3f28d4ee7369f0ebc7af5128d3ffe1390957db98
2016-06-14 17:03:49 -04:00
Besar Wicaksono
aee8ab6ef0
Add interrupt signal support to SDMA
...
Change-Id: Ie2b192f3351a0c3bf1eb36ba9704825b18e6059b
2016-06-14 14:26:25 -04:00
Besar Wicaksono
a2ebd9a825
Fix close source build for tools library,
...
Change-Id: Id0265b186ac2fbc5385ff70e3d34947055788c21
2016-06-06 21:08:21 -04:00
Besar Wicaksono
103cd04236
Blit SDMA support for gfx70x
...
Change-Id: Ie6f215890553ef41c3f36b349fc9cc39c2d38747
2016-06-02 06:18:36 -04:00
James Edwards
f49ddad0a1
Modify runtime cmake files to use HSA_CLOSED_SOURCE_ROOT.
...
Change-Id: I416f8608cfb793eac9065c1f63a85da2d3c3a816
2016-05-31 14:08:10 -05:00
Konstantin Zhuravlyov
5a14d496ab
Add support for dynamic relocations (code object v2.1)
...
Change-Id: Ic19be97d3ea78b53f5aa814787515b587d0be21b
2016-05-26 14:09:07 -04:00
Besar Wicaksono
a8b00680b6
Add profiling support to DMA copy function
...
Change-Id: Iadeefa2692f35d9305ac1b242284a6220d5830a7
2016-05-26 11:29:29 -04:00
James Edwards
50339c12f1
Correct minor issues in License text and sample code for hsa-rocr-dev package.
...
Change-Id: If1c4387794de3cb707a8ba8281a40a1123130c95
2016-05-26 09:42:24 -04:00
Ramesh Errabolu
383ed6983f
Refactor Scratch Memory Descriptor Initialization
...
Change-Id: Ib4a136c266646cc5d5f5afb98f4aaf9266d02072
2016-05-25 22:17:43 -04:00
James Edwards
ec6478e693
Add hsa-rocr-dev packaging CMakeList.txt file.
...
Change-Id: I1f6a0d4ad44aa7f20f43d43942719f668b620c36
2016-05-25 17:04:27 -04:00
James Edwards
72cb6dd33f
Add hsa-ext-rocr-dev automatic packaging.
...
Change-Id: Ieb0d179b4e1a398a9400bd80037a46d0513582bc
2016-05-23 10:10:44 -04:00
Besar Wicaksono
bc589048a9
Use lazy initialization to create Blit objects
...
Change-Id: I388865030dc2538c5c881c055e38af52a57f6d87
2016-05-20 14:26:06 -04:00
James Edwards
ceab9a3eb0
Update hsa-ext-image CMakeList.txt file to include static lib compiler options
...
Change-Id: I06cff984d3dc169cdb30832bf0115bc7d821eadf
2016-05-19 15:48:42 -05:00
Jay Cornwall
90ab72cd66
Implement optimized blit/fill kernels
...
Replace HSAIL kernels with SP3 shaders.
Support all alignment variations efficiently.
Change-Id: Icf7f5471f3ba68389f55484d82f2805dd9bc3827
2016-05-10 21:51:57 -05:00
James Edwards
023b302fae
Add image and tools cmake files to the opensrc directory.
...
Change-Id: I9e95d391992fa6ad7d13b500cd28eb0fb93dda1d
2016-05-03 17:01:14 -05:00
bwicakso
6ea42ae333
hsa_amd_agent_memory_pool_get_info gives wrong results for gfx803. Root cause: missing break point when querying the num hop attribute. Other change: max the reported num hop to 1 since the runtime does not have enough information about each hop, also clarified the comment about HSA_AMD_AGENT_MEMORY_POOL_INFO_NUM_LINK_HOPS attribute in the header file
...
Change-Id: I5d868eb457666e1377d5308f6145e76176bbfaf7
2016-05-03 12:52:38 -04:00
James Edwards
24714cb769
Remove whitespace from comments in CMakeLists.txt
...
Change-Id: I9a94a6f224a5cbd5fb1f8b57ed0c369339e23228
2016-04-28 11:24:02 -05:00
Shi, Aaron (en ye) (xN/A) TO
ad21f0606e
HSA Finalizer: Promote SC PRM -> Finalizer (HSA tree) up to CL 1258514
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1259784]
2016-04-19 15:31:52 -05:00
Jay Cornwall (xN/A) UK
1d4a257225
Fix SDMA fill for >=4MB regions
...
max_single_fill_size_ overflowed the packet field size. Reduce by one dword.
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1259263]
2016-04-18 16:05:13 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
5a584fa1ab
Fix query HSA_AMD_AGENT_MEMORY_POOL_INFO_LINK_INFO
...
Querying HSA_AMD_AGENT_MEMORY_POOL_INFO_LINK_INFO between a gpu agent
and its own local memory pool returns a wrong information.
Fix: return link with 0 hop count.
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1257544]
2016-04-13 12:39:25 -05:00
Hari Thangirala
0545761aa9
ROCR Build ID support
...
Fix dirty-tree status. Thanks to Fan for fixing the issue.
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256716]
2016-04-11 18:48:29 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
ea67bb8374
Sdma wraparound optimization.
...
Remove mutex and just make the thread spin again if the queue is wrapping.
Remove the wait for the queue to finish wrapping, and just check if there is enough space to recycle when reserving queue space.
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256713]
2016-04-11 18:31:45 -05:00
James Edwards (xN/A) TX
871412adff
Remove ENV variables from CMakeLists.txt files.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256687]
2016-04-11 17:18:01 -05:00
Hari Thangirala
a148fd0b68
ROCR Build ID support
...
Build system/Package maintainer:
- BUILDID is specified at cmake.
- USAGE: cmake -DBUILDID=<ID> ../src
For developer builds the who typically don?t provide BUILDID, cmake will:
- Determine the last git commit when this tree was syncd
- Deteremine the build date
- Check if tree is clean when built
The idea of this embedded string is that later when you get a ROCR build, you can get some idea on the build origination by using: strings libhsa-runtime.so.1 | grep ?ROCR BUILD ID?
For eg:
- If it?s a Jenkins build 25, it returns: ?ROCR BUILD ID: 25?
- If it?s a developer build sync'd @ 06f5f2a with modifications, it returns: ?ROCR BUILD ID: 06f5f2a-2016-04-11-0"
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256588]
2016-04-11 15:03:06 -05:00
Zhuravlyov, Konstantin (x21446) MA
503fd728dd
Fail gracefully if memory allocation did not succeed
...
Testing: precheckin (http://ocltc.amd.com:8111/viewModification.html?modId=69427&personal=true&tab=vcsModificationBuilds )
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256179]
2016-04-09 16:40:24 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
2ebde5d2a7
Fix unit test build error due to CL#1256098
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256119]
2016-04-08 16:51:45 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
7760839934
Fix build error from CL#1256102 due to whitespace issue.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256108]
2016-04-08 16:40:05 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
a03c5148a7
Add AMD extension version
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256102]
2016-04-08 16:31:00 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
4ccc695b95
Add global memory clock and width info on the agent attribute list and deprecate the ones in the memory region attribute list.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1256098]
2016-04-08 16:29:10 -05:00
Nikolay Haustov [TEXT]
a795909bca
Cherry-pick CL 1250286 from SC stg.
...
HSA Finalizer: Add dumping of code object, ISA and executable to loader.
This is controlled by loader options -dump-all, -dump-isa, -dump-code, -dump-exec
The options can now also be set with env variable LOADER_OPTIONS_APPEND.
Added tests to finalizer_offline
Testing: smoke, dumping on hardware
Reviewed by: Konstantin Zhuravlyov
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1255351]
2016-04-07 06:01:20 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
823c254d61
Cleanup TODO format
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1255182]
2016-04-06 16:50:50 -05:00
Ramesh Errabolu (xN/A) TX
b93946790d
Update Private Segment Size parameter of the dispatch packet
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1254638]
2016-04-05 14:03:33 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
c95f96a9e4
Add environment flag to enable sdma workaround that will wait for the sdma queue to be idle before updating the write pointer. Add class to manage environment flags.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1254004]
2016-04-01 17:13:45 -05:00
James Edwards (xN/A) TX
e3670a2bef
Branch Brig.h file into opensrc hsa-runtime directory.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1251455]
2016-03-25 15:26:18 -05:00
Nikolay Haustov [TEXT]
46842a57e5
HSA Finalizer: Merge changes in libamdhsacode and loader from sc_prm into hsa/compiler/finalizer and hsa/runtime.
...
Testing: pre-checkin
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1251389]
2016-03-25 08:36:20 -05:00
Zhuravlyov, Konstantin (x21446) MA
f6565a2f70
Clean up extensions and provide public extension/API to query host address given device address:
...
- Partially remove 'amd_load_map' extension because it is not used and will not be used
- Remove 'hsa_amd_query_kernel_host_address' API
- Add 'hsa_ext_amd_loaded_code_object' extension
- Add 'hsa_ext_amd_loaded_code_object_query_host_address' API
- Most likely to be used by debugger, profiler, and hcc (printf)
- Update affected sources
- 'hsa_system_extension_supported'
- 'hsa_system_get_extension_table'
- SoftCP path
- Integrate CLs 1250699, 1251204, 1251214 from stg sc
ReviewBoardURL: http://ocltc.amd.com/reviews/r/10091/
Testing: smoke (ok), teamcity (ok), samples on fiji (AQL and SoftCP) (ok)
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1251223]
2016-03-24 19:00:30 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
9fa0531950
Always wait queue wrap around to finish and dont return not enough resource.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1251141]
2016-03-24 15:52:45 -05:00
Sean Keely (xN/A) TX
1c7142c129
Minor fix to hsa_amd_image_descriptor_t.
...
Change uint32_t data[0]; to uint32_t data[1];
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1251050]
2016-03-24 13:24:22 -05:00
James Edwards (xN/A) TX
7d2bc9d113
Separate open source core runtime code from DK makefiles.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1250152]
2016-03-22 18:10:13 -05:00
James Edwards (xN/A) TX
7d1e6c3a57
Remove opensrc test files.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1249961]
2016-03-22 13:39:51 -05:00
James Edwards (xN/A) TX
c9ffe0004e
Check open source core runtime code into perforce. This includes license and README files.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1249136]
2016-03-20 15:39:40 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
73d43224e9
Add IOLink support
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1247220]
2016-03-14 18:42:31 -05:00
Ramesh Errabolu (xN/A) TX
f7693cf777
Configure AQL packet header with System Scope for flush
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1240170]
2016-02-24 14:08:35 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
bbe0be05d4
Modify MatrixMultiplication sample to use memory pool API
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1237420]
2016-02-16 11:12:25 -05:00
Besar Wicaksono (xN/A) TX [TEXT]
c494af9d49
Add sample application to use the new memory pool API.
...
Details:
- add HsaGetInfo program that prints out all available CPU, GPU and their respective memory pools.
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1237219]
2016-02-15 18:11:44 -05:00
Ramesh Errabolu (xN/A) TX
2280190f70
Populate Cpu and Gpu nodes into different agent lists
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1236865]
2016-02-12 16:14:39 -05:00
Ding, Wei (xN/A) TX
df99562905
Changes 5 hsail apps for supporting gfx803.
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1235366]
2016-02-08 15:39:18 -05:00
Nikolay Haustov [TEXT]
d8e67d962b
Split libHSAIL and libHSAIL-AMD (HSA Changes)
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1223723]
2015-12-28 10:00:43 -05:00
Ramesh Errabolu (xN/A) TX
2f0425d354
Update Binarysearch and BlackScholes Hsa Sample to support FULL and BASE Profiles
...
[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1206169]
2015-10-30 17:53:25 -05:00