-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PyTorch 2.2.2-1.5.11-SNAPSHOT] Exception java.lang.UnsatisfiedLinkError: no jnitorch in java.library.path on WIndows #1500
Comments
Which platform? |
It doesn't work on Windows 10. It works on Ubuntu 22.04 and macOS 13/14. It doesn't work on older macOS though (e.g. macOS 11). It is fine to drop the support of older macOS. |
Could you check what the Dependencies tool says is missing? |
On macOS 11, it cannot load
|
BTW, macOS 11 is no longer supported by either Apple or GitHub, so please upgrade to at least macOS 12 |
It is okay to drop supporting macOS 11. Does PyTorch 2.2.2-1.5.11-SNAPSHOT support macOS on arm64 yet? |
I run a test on a windows 10 VM with 2.2.2 and it works, but jnitorch.dll is indeed linked with libomp140.x86_64.dll that is found in my \windows\system32. It probably came with VS or another software. I guess we should include an OpenMP library in the jar. I'm seeing that the official libtorch archive includes the Intel version. @saudet, what's the best way to do this ? the Pytorch CMakeList.txt doesn't use InstallRequiredSystemLibraries |
That's apparently a file that comes with Visual Studio, so we should add it to this preload list here: |
Ok. |
No, please don't do that |
Ok, would you like a PR for this or can you add it directly ? |
Yes, pull requests always welcome :) Thanks |
Thanks. It runs on Windows now. However, it doesn't produce good models on Windows though. I will create a new ticket about it. |
The same code works fine with 2.2.1-1.5.11-SNAPSHOT.
The text was updated successfully, but these errors were encountered: