@aviezab
Check this
‘https://github.com/pytorch/pytorch/blob/31ed46890546f1dce9f730037136d58c411652a4/cmake/public/cuda.cmake#L25 82’
I am not sure how to statically link this, you can create an issue in github pytorch repo, label it as ‘build’, someone will answer you there.