Skip to content

Commit cb4069d

Browse files
author
Protonu Basu
committed
use nullptr to address clang-tidy
1 parent 2f9d8e9 commit cb4069d

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
@@ -934,7 +934,7 @@ void CudaCodeGen::call(const std::vector<CallArg>& args) {
934934
void CudaCodeGen::CompileToNVRTC(
935935
const std::string& code,
936936
const std::string& func_name) {
937-
CUcontext pctx = 0;
937+
CUcontext pctx = nullptr;
938938
AT_CUDA_DRIVER_CHECK(nvrtc().cuCtxGetCurrent(&pctx));
939939
// Note: hacked at::DeviceGuard since at::DeviceGuard was failing to work
940940
// properly in some scenarios

0 commit comments

Comments
 (0)