Comments (15)
c10
, asmjit
, and libomp140
are missing on Windows 10.
from javacpp-presets.
Which platform?
from javacpp-presets.
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.
from javacpp-presets.
Could you check what the Dependencies tool says is missing?
https://github.com/bytedeco/javacpp-presets/wiki/Debugging-UnsatisfiedLinkError-on-Windows
from javacpp-presets.
On macOS 11, it cannot load macosx-x86_64/libjnitorch.dylib
. However, the libjnitorch.dylib file does exist.
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /Users/xyz/.javacpp/cache/pytorch-2.2.2-1.5.11-20240502.145852-21-macosx-x86_64.jar/org/bytedeco/pytorch/macosx-x86_64/libjnitorch.dylib
from javacpp-presets.
@haifengl @sbrunk Could you please test the builds on Windows and Mac?
from javacpp-presets.
BTW, macOS 11 is no longer supported by either Apple or GitHub, so please upgrade to at least macOS 12
from javacpp-presets.
It is okay to drop supporting macOS 11. Does PyTorch 2.2.2-1.5.11-SNAPSHOT support macOS on arm64 yet?
from javacpp-presets.
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
from javacpp-presets.
That's apparently a file that comes with Visual Studio, so we should add it to this preload list here:
https://github.com/bytedeco/javacpp/blob/master/src/main/java/org/bytedeco/javacpp/presets/javacpp.java#L42
from javacpp-presets.
Ok.
Openmp is not used by many presets. Shouldn't we add it to the preload list of presets needing it only ?
from javacpp-presets.
No, please don't do that
from javacpp-presets.
Ok, would you like a PR for this or can you add it directly ?
from javacpp-presets.
Yes, pull requests always welcome :) Thanks
from javacpp-presets.
Thanks. It runs on Windows now. However, it doesn't produce good models on Windows though. I will create a new ticket about it.
from javacpp-presets.
Related Issues (20)
- Can Java use the OpenCV library bound by JavaCPP for CUDA-accelerated decoding of RTSP streams HOT 1
- Project management with javacpp HOT 9
- Consider enable libdav1d HOT 3
- android-arm and android-x86 binaries are missing for latest ffmpeg HOT 7
- [TensorRT] How to save engine to disk HOT 2
- 1.5.9: Could not initialize class org.bytedeco.opencv.opencv_core.Mat HOT 10
- How to rely on the org.bytedeco:ffmpeg library in Android development HOT 1
- PyTorch AdaptiveAvgPool2dImpl constructor HOT 2
- Missing Py*_Check Methods in JavaCPP Preset for CPython HOT 1
- [PyTorch] How to check if a tensor is None HOT 5
- arpack-ng-platform adds macosx-arm64 support HOT 3
- NegativeArraySizeException when building native image with cuda-redist using (flandmark-demo) HOT 3
- Error trying to build android-arm HOT 3
- [PyTorch 2.2.2-1.5.11-SNAPSHOT] Training produces poor MNIST model on Windows HOT 7
- [PyTorch] Training is very slow on Linux. HOT 9
- Shaka-Packager Preset HOT 3
- [PyTorch] torch.cuda.is_bf16_supported() is missing HOT 8
- [PyTroch] torch_cuda.set_device() and torch.manual_seed() hang HOT 5
- UnsatisfiedLinkError with tesseract-platform after upgrade to 5.3.4-1.5.10 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javacpp-presets.