SWDEV-381402 - Derive hip::Stream from amd::HostQueue

Change-Id: I6c1aca5eb350c32d974ae4ffcc725705355956d8
This commit is contained in:
Ioannis Assiouras
2023-02-08 20:18:11 +00:00
parent aaf1c19609
commit e3633dc8f4
19 changed files with 403 additions and 732 deletions
+3 -3
View File
@@ -512,9 +512,9 @@ hipError_t hipDeviceSetSharedMemConfig ( hipSharedMemConfig config ) {
hipError_t hipDeviceSynchronize ( void ) {
HIP_INIT_API(hipDeviceSynchronize);
amd::HostQueue* queue = hip::getNullStream();
hip::Stream* stream = hip::getNullStream();
if (!queue) {
if (!stream) {
HIP_RETURN(hipErrorOutOfMemory);
}
@@ -522,7 +522,7 @@ hipError_t hipDeviceSynchronize ( void ) {
HIP_RETURN(hipErrorStreamCaptureUnsupported);
}
queue->finish();
stream->finish();
hip::Stream::syncNonBlockingStreams(hip::getCurrentDevice()->deviceId());