-
Notifications
You must be signed in to change notification settings - Fork 733
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] Update to 2.4.0, add distributed #1510
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 4b99f14.
@HGuillemet Your account doesn't already have permission to publish for org.bytedeco?? |
I don't have the secrets. Anyway PR builds don't publish. |
You should be able to publish to org.bytedeco using your own account. I'm pretty sure I gave you access a long time ago. |
Or maybe not, what the name of your OSSRH account? |
|
@HGuillemet Let's just merge this and fix anything broken with the upgrade to PyTorch 2.4? |
I'm about to add a commit for 2.4.0 upgrade |
Ok, we can do that too |
Before merging, you must decide what to do with bytedeco/javacpp#766 |
Also to decide: whether adding the cuda dependency is a good thing or not. |
An optional dependency on the presets for CUDA that only torch_cuda needs, sure, that's fine. |
.put(new Info().javaText("import org.bytedeco.cuda.cusolver.*;")) | ||
.put(new Info().javaText("import org.bytedeco.cuda.cudnn.*;")) | ||
// .put(new Info().javaText("import org.bytedeco.cuda.nccl.*;")) // Not on Windows | ||
.put(new Info().javaText("import org.bytedeco.pytorch.chrono.*;")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing that, please add helper.class, chrono.class and cudnn.class to the @Platform(inherit=...
list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done for cuda, but what helper.class
and chrono.class
are you talking about ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, JavaCPP assumes the helper classes to be in the same package as the generated classes, so let's remove that package too?
As for chrono, see bytedeco/javacpp#766 (comment)
Consider my comment on top post: the dependency will be mandatory when using CUDA. Presently, most users use their system cuda I guess, they will now have to use cuda presets. |
Sure, that's fine, it's not a huge dependency |
This reverts commit 6151980.
@saudet please restart the jobs that failed |
Included in this PR:
intrusive_ptr
, enabling transparent usage like forshared_ptr
weak_ptr
, enabling transparent usage (could be moved to JavaCPP ?)org.bytedeco.javacpp.pathsFirst
and their system cuda has same version than the cuda presets).functions
packages to main packageRemains to be done: