Fixes for P2P and hipDeviceReset

- devicereset would lose track of default stream and thus subsequent
  synchronization calls might not actually sychronize.
- Also deviceReset now correctly frees streams.
- fix waits in P2P staging copy - first phase (Device0-to-Staging) must
  wait for second phase (Staging to Device1) to finish draining the
  buffer.


[ROCm/hip commit: e020d68309]
Этот коммит содержится в:
Ben Sander
2016-04-18 20:49:33 -05:00
родитель 3817725dad
Коммит 32f9d67741
6 изменённых файлов: 45 добавлений и 33 удалений
-6
Просмотреть файл
@@ -172,12 +172,6 @@ hipError_t hipDeviceReset(void)
if (device) {
//---
//Wait for pending activity to complete? TODO - check if this is required behavior:
//TODO, also we have small window between wait and reset.
device->locked_waitAllStreams();
// Release device resources (streams and memory):
device->locked_reset();
}