I have passed the compilation and the CUDA can be detected correctly.
For the second error, I commented all the related tuple initialization in /home/lim/Desktop/GithubRepo/pytorch/test/cpp/jit/test_gpu.cpp.