Commit Graph

637 Commits

Author SHA1 Message Date
Rahul Garg bb8c31c198 Texture driver APIs support
[ROCm/clr commit: 1851c153f6]
2017-11-09 22:10:55 +05:30
Maneesh Gupta 0b86003f38 Merge pull request #250 from AlexVlx/feature_add_agent_global_support
Support for agent globals

[ROCm/clr commit: 925f97fac7]
2017-11-09 07:52:09 +05:30
Alex Voicu 142213a52b Clean up trailing whitespace so as to reduce noise in #246.
[ROCm/clr commit: 0ad1308efd]
2017-11-08 00:08:55 +00:00
Ben Sander 2c95d48f87 Check for null event in hipEventElapsedTime
[ROCm/clr commit: e71456cc6c]
2017-11-06 23:49:31 +00:00
Ben Sander f761859993 hipStreamWaitEvent returns success if event created but not recorded
[ROCm/clr commit: b5911acce2]
2017-11-06 23:49:31 +00:00
Ben Sander 379b3fc7a0 Make hipEvent_t thread safe.
Support re-recording of same event by different threads.

- Add criticalData structure to hipEvent_t, similar to mechanism used
  for streams, contexts, device.  Events are always locked
  after streams to avoid deadlock.
- ihipEvent_t::locked_copyCrit can be used to copy critical state
  including marker.  The critical state in the event can then
  be re-recorded.
- refactor hipEventElapsedTime.  Remmove stale debug code, native signal
  refs.


[ROCm/clr commit: 955cfbfdc7]
2017-11-06 23:49:25 +00:00
Maneesh Gupta db9b583cb6 Merge pull request #251 from ROCm-Developer-Tools/fix_event_state
Set event state AFTER it is recorded.

[ROCm/clr commit: dbb6b2bab8]
2017-11-06 07:28:11 +05:30
Maneesh Gupta 6bc2170189 Merge pull request #249 from bensander/warn_event
Add HIP_DB=warn + message if sync on dangerous event.

[ROCm/clr commit: 958ca62c63]
2017-11-06 07:25:40 +05:30
Ben Sander 0c5ce41d7c Set event state AFTER it is recorded.
[ROCm/clr commit: 1c65bb1684]
2017-11-05 10:33:18 -06:00
Alex Voicu e35ce82eff This introduces correct support for agent global variables, and implements hipModuleGetGlobal as an actual equivalent for cuModuleGetGlobal.
[ROCm/clr commit: d12cf0da7d]
2017-11-03 01:44:48 +00:00
Ben Sander 725f46aa94 Merge pull request #237 from bensander/use_ctxptr_for_p2p
Use ctxptr for p2p

[ROCm/clr commit: fe32685fbc]
2017-11-01 18:55:25 +01:00
Ben Sander 6e82cc25df Add HIP_DB=warn + message if sync on dangerous event.
[ROCm/clr commit: 172b9f96e6]
2017-11-01 10:44:34 -07:00
Ben Sander 19935275ea Merge pull request #245 from scchan/centos_fixes
various fixes for centos/rhel

[ROCm/clr commit: 5a80c4108e]
2017-11-01 18:10:29 +01:00
Siu Chi Chan 2094b92a3e Centos/RHEL - remove usage of constexpr since libc++ doesn't enable ctor for constexpr pair in C++11
[ROCm/clr commit: c1a4ff7b20]
2017-10-31 18:16:12 +00:00
Ben Sander 4df6b371ab Add ns-level timer for HIP API routines
Refactor some miuses of ihipLogStatus, these should only be in top-level
HIP APIs and should be paired with HIP_API_INIT calls.


[ROCm/clr commit: dc7d993a02]
2017-10-30 20:20:51 +00:00
Ben Sander fd5b9cb650 Merge pull request #222 from bensander/fix_device_prop
Fix device prop

[ROCm/clr commit: 7e8b39fc96]
2017-10-30 17:58:48 +01:00
Ben Sander ec29721b16 Check for null copyEngine before looking at peers.
[ROCm/clr commit: 4c7b2be1c2]
2017-10-30 16:58:03 +00:00
Siu Chi Chan bec0ff43e0 Merge remote-tracking branch 'origin/master' into HEAD
[ROCm/clr commit: cf98d0e37d]
2017-10-27 01:18:28 -04:00
Ben Sander b0aa15ee5f Merge pull request #198 from AlexVlx/feature_support_globals_for_module_api
Feature support globals for module api

[ROCm/clr commit: 8a64feef61]
2017-10-27 01:53:34 +02:00
Ben Sander fb169b4de6 Fix bug with peer-to-peer combined with context API
- Store context inside the tracker rather than using int deviceID that
  was always mapped to primary context
- IsPeerWatcher now based on device IDs rather than specific peers.


[ROCm/clr commit: a417241507]
2017-10-26 19:44:22 +00:00
Aditya Atluri a4af82519a Enhance debug for copy pointers
- show more pointer tracking fields
- show pointer info before and after "tailoring'


[ROCm/clr commit: 698721be34]
2017-10-26 19:44:22 +00:00
Siu Chi Chan d97b4b55cc add HC_FEATURE_PRINTF around the printf buffer definition
[ROCm/clr commit: 085d63099c]
2017-10-25 12:00:02 -04:00
Siu Chi Chan f3b4833413 printf support for module API
[ROCm/clr commit: 4ed3e9e15f]
2017-10-24 00:55:41 -04:00
Siu Chi Chan 5f24981c61 replace __hcc_workweek__ with HC_FEATURE_PRINTF flag
[ROCm/clr commit: da7c37947c]
2017-10-23 18:30:08 -04:00
Maneesh Gupta 941682c701 Make elfio headers private
Change-Id: I3ba174bb46e84a75380207d93a0da6fe3703689e


[ROCm/clr commit: 281c543bc3]
2017-10-23 10:24:36 +05:30
Ben Sander b5e3de043c Remove printf
[ROCm/clr commit: b4c7876244]
2017-10-20 13:24:04 -07:00
Ben Sander 2774542487 Update device properties.
- clear properties to defined initial state.
- enable some property flags which are now supported.


[ROCm/clr commit: ed85b15c3e]
2017-10-20 15:52:13 +00:00
Ben Sander 339cf92137 Modify device properties to use pool API.
- Also better error code checking


[ROCm/clr commit: e738fa66b5]
2017-10-20 14:49:29 +00:00
Siu Chi Chan 5ccf3d4d9b hipDeviceReset(): make sure to reinitialize the printf buffer in hcc RT
[ROCm/clr commit: a1956f64e6]
2017-10-18 16:26:13 -04:00
Alex Voicu 1c8db33de9 This fixes incorrect usage of the reader object, which created arcane
mismatches when one reader accessed another's section.


[ROCm/clr commit: b222448efd]
2017-10-09 15:46:38 +01:00
Alex Voicu d9075301c3 This adds cursory support for globals to the HIP module loading API. The
style is purposefully alien so as to signal that HIP experts should turn
it into HIP worthy code as soon as possible.


[ROCm/clr commit: 582779c6c6]
2017-10-09 13:27:11 +01:00
Rahul Garg 0de0e63556 Fixed hipTexture fetch issue
[ROCm/clr commit: 9e07b08ce5]
2017-09-25 06:54:29 +05:30
Wen-Heng (Jack) Chung a6159384a1 Bump device major version from 2 to 3
This would significantly improve performance for certain apps in kernel
selection logic.


[ROCm/clr commit: 1efc99e69f]
2017-09-15 15:47:39 +00:00
Ben Sander 26a332fd62 Merge pull request #179 from gargrahul/fix_hipmallocarray
Fixed hipMallocArray for 1D cases

[ROCm/clr commit: b54ab82694]
2017-09-14 12:59:33 -05:00
Ben Sander 49b1276e3c Merge branch 'master' into hip_init_alloc
[ROCm/clr commit: 1ea468e279]
2017-09-14 11:53:33 -05:00
Ben Sander 2e98e3c4a0 Add HIP_INIT_ALLOC to init allocated memory.
[ROCm/clr commit: fff42fd591]
2017-09-13 23:31:48 +00:00
Rahul Garg a4da20dc5b Fixed hipMallocArray for 1D cases
[ROCm/clr commit: baef2321c8]
2017-09-12 21:52:11 +05:30
Ben Sander 5134d6a2e9 hipStreamQuery uses av::is_empty. Add HIP_FORCE_NULL_STREAM.
[ROCm/clr commit: fff74eee21]
2017-08-31 03:00:14 +00:00
Ben Sander b45217fef0 Refactor hipStreamWaitEvent
- Null streams use same flow as non-null.
- Add HIP_SYNC_STREAM_WAIT
- Resolve null stream.


[ROCm/clr commit: ed8c3ba7e7]
2017-08-31 03:00:14 +00:00
Ben Sander 13dabd677c Merge pull request #167 from bensander/event_safety
Event safety

[ROCm/clr commit: 8add022539]
2017-08-29 13:55:46 -05:00
Ben Sander 070bdb3736 Lock streams when waiting on event completion or querying event safety.
[ROCm/clr commit: bc9ba7cd81]
2017-08-28 18:40:16 -05:00
Rahul Garg d238f5061e Null check on input pointer arguments
[ROCm/clr commit: 765d7f3c7b]
2017-08-25 08:46:34 +05:30
Rahul Garg 7c51575223 Device count check on input device id
[ROCm/clr commit: 04a5a36ef7]
2017-08-22 14:05:44 +05:30
Ben Sander 967ca1a44e Add some new HIP_TRACE_API options.
[ROCm/clr commit: d6aee9ad8f]
2017-08-16 04:00:33 +00:00
Ben Sander ce1eab116f Merge pull request #148 from weixingzhang/vmaddr1
[HIP Texture] The GPU virtual address for texture memory needs to be

[ROCm/clr commit: 94554500db]
2017-08-15 14:19:45 -05:00
Maneesh Gupta d74896f873 [texture] guard new HCC APIs under workweek
Change-Id: I4f60a64fb0b0496ca1eb01ffe6ddda121c25d976


[ROCm/clr commit: 172a568aa6]
2017-08-15 15:51:38 +05:30
Maneesh Gupta b37cc92f36 Merge pull request #138 from scchan/threadfence_system
implement __threadfence_system

[ROCm/clr commit: 2bd79ab9f5]
2017-08-10 12:51:05 +05:30
Ben Sander 34775b1296 Merge pull request #145 from gargrahul/context_mgmt_changes
Updated context management logic:

[ROCm/clr commit: dfc87a85bd]
2017-08-09 17:47:45 -05:00
Weixing Zhang a7f95bb8ee [HIP Texture] The GPU virtual address for texture memory needs to be
aligned.

In hcc_am, a bigger buffer will be allocated for alignment purpose
and _unalignedDevicePointer is added in struct AmPointerInfo for
original allocated address.


[ROCm/clr commit: e4de2d1138]
2017-08-08 11:18:00 -04:00
Maneesh Gupta 51c48e4cef Bump min hcc_workweek required for named kernel dispatch to 17312
Change-Id: I8c7b58306b279ed113d03260e4bc6086bb8b4e68


[ROCm/clr commit: dabd6d2bc6]
2017-08-08 11:08:55 +05:30