libtorch doesn't work with cuda 12.6 and 12.4 · Issue #132575 · pytorch/pytorch
🐛 Describe the bug #include <cuda_runtime.h> #include <torch/torch.h> #include <iostream> int main() { std::cout << "CUDA device count: " << torch::cuda::device_count() << std::endl; std::cout << "...</iostream></torch/torch.h></cuda_runtime.h>