Skip to content

Commit a3b7a03

Browse files
committed
Deprecate THC/THCGeneral.h
1 parent e52d249 commit a3b7a03

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

csrc/lamb/fused_lamb_cuda_kernel.cu

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "ATen/cuda/CUDAContext.h"
99
#include "ATen/cuda/detail/IndexUtils.cuh"
1010
//#include "ATen/Type.h"
11-
#include <THC/THCGeneral.h>
1211
#include "ATen/AccumulateType.h"
1312

1413
#include <iostream>
@@ -462,7 +461,7 @@ void fused_lamb_cuda(at::Tensor& p,
462461
lamb_coeff.data<scalar_t>());
463462
}));
464463
}
465-
THCudaCheck(cudaGetLastError());
464+
C10_CUDA_CHECK(cudaGetLastError());
466465
}
467466

468467
// template __device__ void reduce_two_vectors_in_register<float,512>(float a, float b, float* g_a,

0 commit comments

Comments
 (0)