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

Bu işleme şunda yer alıyor:
Aryan Salmanpour
2020-03-09 16:03:59 -04:00
ebeveyn 97b24eba45
işleme 7009901fe0
2 değiştirilmiş dosya ile 13 ekleme ve 16 silme
+1 -1
Dosyayı Görüntüle
@@ -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;