Hi all,
I am using prebuilt libtorch libraries for Windows in my C++ programs, everything works just fine. Two questions here:


How are the cuda files (*.cu) compiled in these binaries? I am especially interested in the -gencode parameter values passed to NVCC compiler when creating these binaries. This will tell me, on which GPU platforms the libraries will run. For example, is there also a PTX version embedded?


The prebuilt libs in libtorch for Windows are shared, I’ve tried to compile from source to create a static torch.lib, but after tweaking build parameters here and there, I failed. Can anyone share a way how to create static torch.lib for Windows?


Thanks.
Alex