NeuralPCI icon indicating copy to clipboard operation
NeuralPCI copied to clipboard

CHECK_EQ in utils/EMD/cuda/emd_kernel.cu is undefined

Open SagacityPuppy opened this issue 1 year ago • 3 comments

Hi, thanks for your wonderful work.

When I compile the EMD library, there raising a ERROR of the undefined CHECK_EQ method

Then I find that CHECK_INPUT, CHECK_CUDA, CHECK_CONTIGUOUS in the emd_kernel.cu (line 20-22) file are all well-defined but except CHECK_EQ (such as line 182-184).

I would appreciate it if you could provide the code snippet about the correct definition of CHECK_EQ, or point out the mistakes I made in the process.

SagacityPuppy avatar Dec 12 '24 08:12 SagacityPuppy

I have the same issue when compiling on Windows 11

harryseely avatar Jan 28 '25 23:01 harryseely

replace the "CHECK_EQ" with "TORCH_CHECK_EQ", then it will be work.

Kyronxu avatar Feb 14 '25 03:02 Kyronxu

Thanks, and I also tried to define the CHECK_EQ by define CHECK_EQ(x, y) TORCH_CHECK(x==y, #x "must equal to" #y), then it also works. Am I defining it correctly? Are the two means essentially the same?

SagacityPuppy avatar Feb 24 '25 08:02 SagacityPuppy