Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions flang-rt/lib/cuda/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ void RTDEF(CUFLaunchKernel)(const void *kernel, intptr_t gridX, intptr_t gridY,
terminator.Crash("Too many invalid grid dimensions");
}
cudaStream_t defaultStream = 0;
CUDA_REPORT_IF_ERROR(cudaLaunchKernel(kernel, gridDim, blockDim, params, smem,
stream != nullptr ? (cudaStream_t)(*stream) : defaultStream));
cudaLaunchKernel(kernel, gridDim, blockDim, params, smem,
stream != nullptr ? (cudaStream_t)(*stream) : defaultStream);
}

void RTDEF(CUFLaunchClusterKernel)(const void *kernel, intptr_t clusterX,
Expand Down Expand Up @@ -153,7 +153,7 @@ void RTDEF(CUFLaunchClusterKernel)(const void *kernel, intptr_t clusterX,
launchAttr[0].val.clusterDim.z = clusterZ;
config.numAttrs = 1;
config.attrs = launchAttr;
CUDA_REPORT_IF_ERROR(cudaLaunchKernelExC(&config, kernel, params));
cudaLaunchKernelExC(&config, kernel, params);
}

void RTDEF(CUFLaunchCooperativeKernel)(const void *kernel, intptr_t gridX,
Expand Down Expand Up @@ -218,8 +218,8 @@ void RTDEF(CUFLaunchCooperativeKernel)(const void *kernel, intptr_t gridX,
terminator.Crash("Too many invalid grid dimensions");
}
cudaStream_t defaultStream = 0;
CUDA_REPORT_IF_ERROR(cudaLaunchCooperativeKernel(kernel, gridDim, blockDim,
params, smem, stream != nullptr ? (cudaStream_t)*stream : defaultStream));
cudaLaunchCooperativeKernel(kernel, gridDim, blockDim, params, smem,
stream != nullptr ? (cudaStream_t)*stream : defaultStream);
}

} // extern "C"
Loading