[hip] Move _criticalData of ihipStream_t class to private section and use criticalData() to access it (#1177)

[ROCm/hip commit: 999f45fc11]
Dieser Commit ist enthalten in:
Aryan Salmanpour verfasst und Maneesh Gupta committed 2019-07-04 00:42:19 +00:00
1 Ursprung 01ee58e0c7
Commit a2655fd90a
3 Dateien geändert
+4 -6

Keine Dateien entsprechen Ihrer Suche

+2 -2
Datei anzeigen
@@ -1038,7 +1038,7 @@ void ihipCtx_t::locked_syncDefaultStream(bool waitOnSelf, bool syncHost) {
}
} else {
if (waitThisStream) {
LockedAccessor_StreamCrit_t streamCrit(stream->_criticalData);
LockedAccessor_StreamCrit_t streamCrit(stream->criticalData());
// The last marker will provide appropriate visibility:
if (!streamCrit->_av.get_is_empty()) {
@@ -1056,7 +1056,7 @@ void ihipCtx_t::locked_syncDefaultStream(bool waitOnSelf, bool syncHost) {
// Enqueue a barrier to wait on all the barriers we sent above:
if (!HIP_SYNC_NULL_STREAM && !depOps.empty()) {
LockedAccessor_StreamCrit_t defaultStreamCrit(_defaultStream->_criticalData);
LockedAccessor_StreamCrit_t defaultStreamCrit(_defaultStream->criticalData());
tprintf(DB_SYNC, " null-stream wait on %zu non-empty streams. sync_host=%d\n",
depOps.size(), syncHost);
hc::completion_future defaultCf = defaultStreamCrit->_av.create_blocking_marker(