Open Davidos533 opened 1 month ago
omg guys I lost more than a week now it works!
i'am downgrade to tch-rs version: 0.17.0
and use this libtorch version:
https://download.pytorch.org/libtorch/cu118/libtorch-win-shared-with-deps-2.4.0%2Bcu118.zip
and torch_cuda.dll in deps!
Dump of file C:\FILES\Projects\street-recognizer\target\release\street-recognizer.exe
File Type: EXECUTABLE IMAGE
Image has the following dependencies:
bcryptprimitives.dll
api-ms-win-core-synch-l1-2-0.dll
torch_cuda.dll
torch_cpu.dll
c10.dll
KERNEL32.dll
ntdll.dll
MSVCP140.dll
VCRUNTIME140.dll
VCRUNTIME140_1.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
Summary
3000 .data
6000 .pdata
2E000 .rdata
1000 .reloc
96000 .text
and if i started it Is cuda avaliable: true
But version tch-rs 0.18.0
not works!
Hello I have problem a long time can't fix it
PyTorch 2.5.0 C++ Libtorch version cu118 dowloaded from here:
all variables set for user and as system: (path to libtorch) PATH:
i'am trying to use this example https://github.com/LaurentMazare/tch-rs/tree/main/examples/char-rnn
.cargo/config.toml
with one addition at line 42:
println!("{}", device.is_cuda());
and i when start i'am getting:AND Most intresing thing! When i build it by C++ by this instruction
my code like:
my
CMakeLists.txt
likeit's compiles and i get:
Please help me
Edit: I'am compared Rust compiled app with C++ compiled app by
Dependency Walker
In Rust app no TORCH_CUDA.dll depC++ app deps:
Rust app deps: