From 57b9c729b823ee80baf779f0849b3aa9cba2100c Mon Sep 17 00:00:00 2001 From: Peter Bell Date: Tue, 19 Oct 2021 16:07:39 -0700 Subject: [PATCH] Remove THCGeneral.cpp (#66766) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66766 Test Plan: Imported from OSS Reviewed By: zou3519 Differential Revision: D31721647 Pulled By: ngimel fbshipit-source-id: 5033a2800871c8745a1a92e379c9f97c98af212e --- pytorch3d/csrc/pulsar/cuda/commands.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytorch3d/csrc/pulsar/cuda/commands.h b/pytorch3d/csrc/pulsar/cuda/commands.h index 910efd31..94a8e4b9 100644 --- a/pytorch3d/csrc/pulsar/cuda/commands.h +++ b/pytorch3d/csrc/pulsar/cuda/commands.h @@ -208,7 +208,7 @@ __device__ static float atomicMin(float* address, float val) { #define IABS(a) abs(a) // Checks. -#define CHECKOK THCudaCheck +#define CHECKOK C10_CUDA_CHECK #define ARGCHECK THArgCheck // Math. @@ -485,7 +485,7 @@ __device__ static float atomicMin(float* address, float val) { #define END_PARALLEL_2D_NORET() #define END_PARALLEL_2D() #define RETURN_PARALLEL() return -#define CHECKLAUNCH() THCudaCheck(cudaGetLastError()); +#define CHECKLAUNCH() C10_CUDA_CHECK(cudaGetLastError()); #define ISONDEVICE true #define SYNCDEVICE() HANDLECUDA(cudaDeviceSynchronize()) #define START_TIME(TN) \