diff --git a/projects/hip/api/hip/hip_memory.cpp b/projects/hip/api/hip/hip_memory.cpp index d4380eee0b..24ed647acb 100644 --- a/projects/hip/api/hip/hip_memory.cpp +++ b/projects/hip/api/hip/hip_memory.cpp @@ -281,7 +281,7 @@ hipError_t hipMemGetInfo(size_t* free, size_t* total) { return hipErrorInvalidValue; } - *free = freeMemory[0]; + *free = freeMemory[0] * Ki; *total = device->info().globalMemSize_; return hipSuccess; diff --git a/projects/hip/api/hip/hip_module.cpp b/projects/hip/api/hip/hip_module.cpp index 6b154b2d9e..f4a8f6aaa3 100644 --- a/projects/hip/api/hip/hip_module.cpp +++ b/projects/hip/api/hip/hip_module.cpp @@ -198,6 +198,7 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, } if(startEvent != nullptr) { + eStart->stream_ = queue; amd::Command* startCommand = new hip::TimerMarker(*eStart->stream_); startCommand->enqueue(); @@ -225,6 +226,7 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, if (eStop->event_ != nullptr) { eStop->event_->release(); } + eStop->stream_ = queue; eStop->event_ = &command->event(); command->retain(); }