Skip to content

Commit ec76834

Browse files
author
Protonu Basu
committed
use nullptr to address clang-tidy
1 parent ac205ac commit ec76834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/csrc/jit/tensorexpr/cuda_codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ void CudaCodeGen::call(const std::vector<CallArg>& args) {
940940
void CudaCodeGen::CompileToNVRTC(
941941
const std::string& code,
942942
const std::string& func_name) {
943-
CUcontext pctx = 0;
943+
CUcontext pctx = nullptr;
944944
AT_CUDA_DRIVER_CHECK(nvrtc().cuCtxGetCurrent(&pctx));
945945
// Note: hacked at::DeviceGuard since at::DeviceGuard was failing to work
946946
// properly in some scenarios

0 commit comments

Comments
 (0)