Skip to content

Commit

Permalink
[dlpack] Update to v1.0 (#264)
Browse files Browse the repository at this point in the history
* [dlpack] update to v1.0
* https://github.com/dmlc/dlpack/releases/tag/v1.0
* [dlpack] correct PROJECT_VERSION to 1.0
  • Loading branch information
luncliff committed Sep 15, 2024
1 parent 8adf02f commit c99a1f3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
13 changes: 13 additions & 0 deletions ports/dlpack/fix-cmake.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea113e1..ed9671a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
# Set variables:
# * PROJECT_NAME
# * PROJECT_VERSION
-project(dlpack VERSION 0.6 LANGUAGES C CXX)
+project(dlpack VERSION 1.0 LANGUAGES C CXX)

#####
# Change the default build type from Debug to Release, while still
6 changes: 4 additions & 2 deletions ports/dlpack/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO dmlc/dlpack
REF v0.8
SHA512 1669d5145904918499682ed80db7a444d012708c7b8c1d03410ef8fa8bcacd95e56450e95a842b0b4d900f973d04e24bd86e33f54b8afe80dd5dbbb02d04fc13
REF v1.0
SHA512 bdf27bdb6d24db2da9155b9c78e62faf043e0aa4d54dba4cadac312c2b87533ae1b44ecebd462a764141297baa35884c1379902d655bab8a71fe65838c7b1e9b
HEAD_REF main
PATCHES
fix-cmake.patch
)

vcpkg_cmake_configure(
Expand Down
2 changes: 1 addition & 1 deletion ports/dlpack/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dlpack",
"version": "0.8",
"version": "1.0",
"description": "common in-memory tensor structure",
"homepage": "https://github.com/dmlc/dlpack",
"license": "Apache-2.0",
Expand Down
1 change: 1 addition & 0 deletions test/azure-port-android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ fft2d
nsync
ruy
tensorflow-lite
dlpack
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"port-version": 0
},
"dlpack": {
"baseline": "0.8",
"baseline": "1.0",
"port-version": 0
},
"eigen3": {
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/dlpack.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "deca608a2d8a5edb98345ecd50e2f174dea6f9ae",
"version": "1.0",
"port-version": 0
},
{
"git-tree": "030bf66a1b5a31796185f0403c7b91870561c3f4",
"version": "0.8",
Expand Down

0 comments on commit c99a1f3

Please sign in to comment.