Added feature for --default-streams not working tests and hipcc

このコミットが含まれているのは:
Aditya Atluri committed 2016-03-20 08:08:33 -05:00
1 親 80d708846a
コミット f6b38b18b6
5ファイル変更
+140 -4

検索条件に一致するファイルはありません

+3 -3
ファイルの表示
@@ -1151,8 +1151,6 @@ INLINE ihipDevice_t *ihipGetDevice(int deviceId)
}
//---
// Get the stream to use for a command submission.
//
@@ -1162,8 +1160,10 @@ inline hipStream_t ihipSyncAndResolveStream(hipStream_t stream)
{
if (stream == hipStreamNull ) {
ihipDevice_t *device = ihipGetTlsDefaultDevice();
device->syncDefaultStream(false);
#ifndef HIP_API_PER_THREAD_DEFAULT_STREAM
device->syncDefaultStream(false);
#endif
return device->_default_stream;
} else {
// Have to wait for legacy default stream to be empty: