I created a simple rust project and imported tch, and it doesn’t work, even if the program doesn’t use it.
use tch::nn;
fn main() {
println!("Hello, world!");
}
Although the program compiles, running it produces an error:
The procedure entry point __kmpc_masked could not be located in the dynamic link library C:libtorch
torch_cpu.dll
I tried reinstalling cuda to fit the torch version (12.4) I tried playing with the dependencies. The current toml file has the following:
[package]
name = "tch_test"
version = "0.1.0"
edition = "2021"
[dependencies]
tch = {version="0.17.0", path="tch-rs"}
[dev-dependencies]
torch-sys = {version="0.17.0", path="tch-rs/torch-sys"}
However, I also tried just using the dependencies when I installed tch using cargo add (changing the tch to just tch=”0.17.0″ and that didn’t work either.
I tried setting my environment variables, as was shown in the github page, and even tried to add the LIBTORCH_USE_PYTORCH variable as pytorch does work on python on my machine.
I am using a windows 10 machine with an RTX4060. Help will be greatly appreciated.
Thank You!