Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deform_conv_cuda.cu(954): error: identifier "AT_CHECK" is undefined Win10 #12

Closed
washburn125 opened this issue May 14, 2020 · 2 comments

Comments

@washburn125
Copy link

I follows the given installation instractions but when I run python setup.py build develop I get:

  • a long list of warnings like
    C:/Users/INA5/Anaconda3/envs/rcnn/lib/site-packages/torch/include\torch/csrc/jit/api/object.h(132): warning: field of class type without a DLL interface used in a class with a DLL interface
  • list of identical 11 errors:
    C:\Users\INA5\detectron2\detectron2\layers\csrc\deformable\deform_conv.h(136): error: identifier "AT_CHECK" is undefined
11 errors detected in the compilation of "C:/Users/INA5/AppData/Local/Temp/tmpxft_00002d6c_00000000-10_deform_conv_cuda.cpp1.ii".
deform_conv_cuda.cu
ninja: build stopped: subcommand failed

my python detectron2/utils/collect_env.py output :

sys.platform           win32
Python                 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 22:22:21) [MSC v.1916 64 bit (AMD64)]
Numpy                  1.18.1
detectron2._C          failed to import
DETECTRON2_ENV_MODULE  <not set>
PyTorch                1.5.0
PyTorch Debug Build    False
torchvision            0.6.0
CUDA available         True
GPU 0                  Quadro M2200
CUDA_HOME              C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
NVCC                   Not Available
Pillow                 7.1.2
cv2                    `4.2.0`

Could you please give me some guidelines/ideas how to fix it?

@veer5551
Copy link

veer5551 commented May 31, 2020

Hey @washburn125 ,

I am facing the similar issue. Were you able to get a solution?

Error:

C:\Users\msjmf59\Documents\Projects\Auto_Labelling\Models\Pytorch\cns\detectron2\detectron2\layers\csrc\deformable\deform_conv.h(136): error: identifier "AT_CHECK" is undefined

C:\Users\msjmf59\Documents\Projects\Auto_Labelling\Models\Pytorch\cns\detectron2\detectron2\layers\csrc\deformable\deform_conv.h(184): error: identifier "AT_CHECK" is undefined

C:\Users\msjmf59\Documents\Projects\Auto_Labelling\Models\Pytorch\cns\detectron2\detectron2\layers\csrc\deformable\deform_conv.h(234): error: identifier "AT_CHECK" is undefined

C:\Users\msjmf59\Documents\Projects\Auto_Labelling\Models\Pytorch\cns\detectron2\detectron2\layers\csrc\deformable\deform_conv.h(284): error: identifier "AT_CHECK" is undefined

C:\Users\msjmf59\Documents\Projects\Auto_Labelling\Models\Pytorch\cns\detectron2\detectron2\layers\csrc\deformable\deform_conv.h(341): error: identifier "AT_CHECK" is undefined

C:/Users/msjmf59/Documents/Projects/Auto_Labelling/Models/Pytorch/cns/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu(155): error: identifier "AT_CHECK" is undefined

C:/Users/msjmf59/Documents/Projects/Auto_Labelling/Models/Pytorch/cns/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu(338): error: identifier "AT_CHECK" is undefined

C:/Users/msjmf59/Documents/Projects/Auto_Labelling/Models/Pytorch/cns/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu(503): error: identifier "AT_CHECK" is undefined

C:/Users/msjmf59/Documents/Projects/Auto_Labelling/Models/Pytorch/cns/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu(696): error: identifier "AT_CHECK" is undefined

C:/Users/msjmf59/Documents/Projects/Auto_Labelling/Models/Pytorch/cns/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu(823): error: identifier "AT_CHECK" is undefined

C:/Users/msjmf59/Documents/Projects/Auto_Labelling/Models/Pytorch/cns/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu(953): error: identifier "AT_CHECK" is undefined

11 errors detected in the compilation of "C:/Users/msjmf59/AppData/Local/Temp/tmpxft_00000a80_00000000-10_deform_conv_cuda.cpp1.ii".
deform_conv_cuda.cu
ninja: build stopped: subcommand failed.

Thanks a lot!

#Update 1:
Use the actual code base of facebook.
Details in issue #2 (comment)

@KangolHsu
Copy link

change file :detectron2\detectron2\layers\csrc\deformable
replace all the “AT_CHECK” with “TORCH_CHECK” in deform_conv_cuda.cu and deform_conv.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants