Skip to content

Commit

Permalink
(#25290) dlpack: add 1.0
Browse files Browse the repository at this point in the history
Co-authored-by: Abril Rincón Blanco <[email protected]>
  • Loading branch information
raplonu and AbrilRBS authored Sep 23, 2024
1 parent 359822d commit 99aa5da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions recipes/dlpack/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"1.0":
url: "https://github.com/dmlc/dlpack/archive/v1.0.tar.gz"
sha256: "f8cfdcb634ff3cf0e3d9a3426e019e1c6469780a3b0020c9bc4ecc09cf9abcb1"
"0.8":
url: "https://github.com/dmlc/dlpack/archive/v0.8.tar.gz"
sha256: "cf965c26a5430ba4cc53d61963f288edddcd77443aa4c85ce722aaf1e2f29513"
Expand Down
6 changes: 5 additions & 1 deletion recipes/dlpack/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

int main()
{
#if DLPACK_VERSION < 60
#ifdef DLPACK_MAJOR_VERSION // Since 1.0
int major = DLPACK_MAJOR_VERSION;
int minor = DLPACK_MINOR_VERSION;
int patch = 0;
#elif DLPACK_VERSION < 60
int major = (DLPACK_VERSION >> 6) & 7;
int minor = (DLPACK_VERSION >> 3) & 7;
int patch = DLPACK_VERSION & 7;
Expand Down
2 changes: 2 additions & 0 deletions recipes/dlpack/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"1.0":
folder: "all"
"0.8":
folder: "all"
"0.6":
Expand Down

0 comments on commit 99aa5da

Please sign in to comment.