Reproduced the error with.
Python: 3.7.5
PyTorch: 1.3.1
nvcc: 10.0.130
c++ is gcc 7.4.0
os: Ubuntu
I have no  idea what is causing this.
Dynamic parallelism is vital for my current task, will be following this post closely.
@hibagus: Did you try to compile things by hand?