I was finally able to build my static windows version of torch using cuda.
Unfortunately now I have another issue.
If I link the library normally I can run my sample but I received an exception from CUDA when I try to use it. It make sense because I need to use the link flag WHOLE_ARCHIVE.
But if I use it with my static library torch. When I try to launch my executable I have a direct segfault.
Someone has an idea why torch will give me a segfault like that, I will try to have mode info why is giving a segfault but if someone have an idea it will be really useful.
Thanks