[HIP] fix formatting/code clean up and fix a bug

[ROCm/clr commit: 7009901fe0]
This commit is contained in:
Aryan Salmanpour
2020-03-09 16:03:59 -04:00
parent 2ca751f70c
commit d011efb792
2 changed files with 13 additions and 16 deletions
+1 -1
View File
@@ -1619,7 +1619,7 @@ void ihipPrintKernelLaunch(const char* kernelName, const grid_launch_parm* lp,
// Allows runtime to track some information about the stream.
hipStream_t ihipPreLaunchKernel(hipStream_t stream, dim3 grid, dim3 block, grid_launch_parm* lp,
const char* kernelNameStr, bool lockAcquired) {
if (stream == nullptr || stream != stream->getCtx()->_defaultStream){
if (stream == nullptr || stream != stream->getCtx()->_defaultStream) {
stream = ihipSyncAndResolveStream(stream, lockAcquired);
}
lp->grid_dim.x = grid.x;