Question about THC\THC.h

Im trying to compile a convolutional layer repository named “DCNv2” and have the same problem. I have installed CUDA 11.3 (docker image) and pytorch 1.12 and i have tried many things but any of them can solve it. I cant use another pytorch version because my gpu driver isnt compatible with cuda 11.6 (the other option for downloading pytorch) and my gpu isnt compatible with higher driver versions. I have tried to update ATen version but i havent found a higher version. I would appreciate any help. Thanks in advance.