Skip to content

Commit 0746d96

Browse files
committed
* Upgrade presets for PyTorch 2.11.0
1 parent d6ef040 commit 0746d96

82 files changed

Lines changed: 480 additions & 350 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Add new `SampleOnnxMNIST` in samples for TensorRT ([pull #1742](https://github.com/bytedeco/javacpp-presets/pull/1742))
33
* Fix loading issues with `libomp.dylib` and `libiomp5.dylib` for DNNL and PyTorch on Mac
44
* Include `model_package_loader.h` header file in presets for PyTorch ([issue #1729](https://github.com/bytedeco/javacpp-presets/issues/1729))
5-
* Upgrade presets for LLVM 22.1.1, TensorFlow Lite 2.21.0, and their dependencies
5+
* Upgrade presets for LLVM 22.1.1, PyTorch 2.11.0, TensorFlow Lite 2.21.0, and their dependencies
66
* Compile classes with `parameters` bumping minimum requirements to Java SE 8 and Android 7.0 ([issue #1739](https://github.com/bytedeco/javacpp-presets/issues/1739))
77

88
### February 22, 2026 version 1.5.13

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip
224224
* NVIDIA Video Codec SDK 13.0.x https://developer.nvidia.com/nvidia-video-codec-sdk
225225
* OpenCL 3.0.x https://github.com/KhronosGroup/OpenCL-ICD-Loader
226226
* MXNet 1.9.x https://github.com/apache/incubator-mxnet
227-
* PyTorch 2.10.x https://github.com/pytorch/pytorch
227+
* PyTorch 2.11.x https://github.com/pytorch/pytorch
228228
* SentencePiece 0.2.x https://github.com/google/sentencepiece
229229
* TensorFlow 1.15.x https://github.com/tensorflow/tensorflow
230230
* TensorFlow Lite 2.21.x https://github.com/tensorflow/tensorflow

platform/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
<dependency>
293293
<groupId>org.bytedeco</groupId>
294294
<artifactId>pytorch-platform</artifactId>
295-
<version>2.10.0-${project.version}</version>
295+
<version>2.11.0-${project.version}</version>
296296
</dependency>
297297
<dependency>
298298
<groupId>org.bytedeco</groupId>

pytorch/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Introduction
99
------------
1010
This directory contains the JavaCPP Presets module for:
1111

12-
* PyTorch 2.10.0 https://pytorch.org/
12+
* PyTorch 2.11.0 https://pytorch.org/
1313

1414
Please refer to the parent README.md file for more detailed information about the JavaCPP Presets.
1515

@@ -40,46 +40,46 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic
4040
<modelVersion>4.0.0</modelVersion>
4141
<groupId>org.bytedeco.pytorch</groupId>
4242
<artifactId>simplemnist</artifactId>
43-
<version>1.5.13</version>
43+
<version>1.5.14-SNAPSHOT</version>
4444
<properties>
4545
<exec.mainClass>SimpleMNIST</exec.mainClass>
4646
</properties>
4747
<dependencies>
4848
<dependency>
4949
<groupId>org.bytedeco</groupId>
5050
<artifactId>pytorch-platform</artifactId>
51-
<version>2.10.0-1.5.13</version>
51+
<version>2.11.0-1.5.14-SNAPSHOT</version>
5252
</dependency>
5353

5454
<!-- Additional dependencies required to use CUDA, cuDNN, and NCCL -->
5555
<dependency>
5656
<groupId>org.bytedeco</groupId>
5757
<artifactId>pytorch-platform-gpu</artifactId>
58-
<version>2.10.0-1.5.13</version>
58+
<version>2.11.0-1.5.14-SNAPSHOT</version>
5959
</dependency>
6060

6161
<!-- Additional dependencies to use bundled CUDA, cuDNN, and NCCL -->
6262
<dependency>
6363
<groupId>org.bytedeco</groupId>
6464
<artifactId>cuda-platform-redist-cudnn</artifactId>
65-
<version>13.1-9.19-1.5.13</version>
65+
<version>13.1-9.19-1.5.14-SNAPSHOT</version>
6666
</dependency>
6767
<dependency>
6868
<groupId>org.bytedeco</groupId>
6969
<artifactId>cuda-platform-redist-cusolver</artifactId>
70-
<version>13.1-9.19-1.5.13</version>
70+
<version>13.1-9.19-1.5.14-SNAPSHOT</version>
7171
</dependency>
7272
<dependency>
7373
<groupId>org.bytedeco</groupId>
7474
<artifactId>cuda-platform-redist-nccl</artifactId>
75-
<version>13.1-9.19-1.5.13</version>
75+
<version>13.1-9.19-1.5.14-SNAPSHOT</version>
7676
</dependency>
7777

7878
<!-- Additional dependencies to use bundled full version of MKL -->
7979
<dependency>
8080
<groupId>org.bytedeco</groupId>
8181
<artifactId>mkl-platform-redist</artifactId>
82-
<version>2025.3-1.5.13</version>
82+
<version>2025.3-1.5.14-SNAPSHOT</version>
8383
</dependency>
8484
</dependencies>
8585
<build>

pytorch/cppbuild.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if [[ $PLATFORM == windows* ]]; then
4141
export PYTHON_BIN_PATH=$(which python.exe)
4242
fi
4343

44-
PYTORCH_VERSION=2.10.0
44+
PYTORCH_VERSION=2.11.0
4545

4646
export PYTORCH_BUILD_VERSION="$PYTORCH_VERSION"
4747
export PYTORCH_BUILD_NUMBER=1
@@ -191,6 +191,8 @@ case $PLATFORM in
191191
;;
192192
esac
193193

194+
#sedinplace 's/,code=sm_.*)/,code=compute_60)/g' cmake/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake
195+
194196
# work around issues with the build system
195197
sedinplace '/Werror/d' CMakeLists.txt third_party/fbgemm/CMakeLists.txt third_party/fmt/CMakeLists.txt
196198
sedinplace '/setuptools.command.bdist_wheel/d' setup.py

pytorch/platform/gpu/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>org.bytedeco</groupId>
1414
<artifactId>pytorch-platform-gpu</artifactId>
15-
<version>2.10.0-${project.parent.version}</version>
15+
<version>2.11.0-${project.parent.version}</version>
1616
<name>JavaCPP Presets Platform GPU for PyTorch</name>
1717

1818
<properties>

pytorch/platform/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>org.bytedeco</groupId>
1414
<artifactId>pytorch-platform</artifactId>
15-
<version>2.10.0-${project.parent.version}</version>
15+
<version>2.11.0-${project.parent.version}</version>
1616
<name>JavaCPP Presets Platform for PyTorch</name>
1717

1818
<properties>

pytorch/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>org.bytedeco</groupId>
1313
<artifactId>pytorch</artifactId>
14-
<version>2.10.0-${project.parent.version}</version>
14+
<version>2.11.0-${project.parent.version}</version>
1515
<name>JavaCPP Presets for PyTorch</name>
1616

1717
<dependencies>

pytorch/samples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<dependency>
1313
<groupId>org.bytedeco</groupId>
1414
<artifactId>pytorch-platform</artifactId>
15-
<version>2.10.0-1.5.14-SNAPSHOT</version>
15+
<version>2.11.0-1.5.14-SNAPSHOT</version>
1616
</dependency>
1717

1818
<!-- Additional dependencies required to use CUDA, cuDNN, and NCCL -->
1919
<dependency>
2020
<groupId>org.bytedeco</groupId>
2121
<artifactId>pytorch-platform-gpu</artifactId>
22-
<version>2.10.0-1.5.14-SNAPSHOT</version>
22+
<version>2.11.0-1.5.14-SNAPSHOT</version>
2323
</dependency>
2424

2525
<!-- Additional dependencies to use bundled CUDA, cuDNN, and NCCL -->

pytorch/src/gen/java/org/bytedeco/pytorch/ArgumentSpec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ public class ArgumentSpec extends Pointer {
4343
public native @Const @ByRef ArgumentInfo tensorAt(@Cast("size_t") long i);
4444
public native @Cast("size_t") long numOptionals();
4545
public native @Cast("bool") boolean isPresent(@Cast("size_t") long i);
46-
public native @Cast("size_t") @Name("hashCode") long _hashCode();
46+
public native @Cast("size_t") @Name("hashCode") @NoException(true) long _hashCode();
4747
}

0 commit comments

Comments
 (0)