git: a98d1afeea5d - main - misc/dlpack: New port: Common in-memory tensor structure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Jul 2024 00:42:50 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=a98d1afeea5dff82def4f87caf0339634a55198b commit a98d1afeea5dff82def4f87caf0339634a55198b Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-07-17 00:03:48 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-07-17 00:42:45 +0000 misc/dlpack: New port: Common in-memory tensor structure --- misc/Makefile | 1 + misc/dlpack/Makefile | 26 ++++++++++++++++++++++++++ misc/dlpack/distinfo | 3 +++ misc/dlpack/pkg-descr | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index d8b468add11e..47266807e40c 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -88,6 +88,7 @@ SUBDIR += dijo SUBDIR += dive SUBDIR += dlib-models + SUBDIR += dlpack SUBDIR += dnetc SUBDIR += dotenv-linter SUBDIR += dtach diff --git a/misc/dlpack/Makefile b/misc/dlpack/Makefile new file mode 100644 index 000000000000..e10a9c8654c0 --- /dev/null +++ b/misc/dlpack/Makefile @@ -0,0 +1,26 @@ +PORTNAME= dlpack +DISTVERSIONPREFIX= v +DISTVERSION= 1.0rc +CATEGORIES= misc # machine-learning + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Common in-memory tensor structure +WWW= https://dmlc.github.io/dlpack/latest/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:testing compiler:c++11-lang python:run shebangfix +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= dmlc + +PLIST_FILES= include/dlpack/dlpack.h \ + lib/cmake/dlpack/dlpackConfig.cmake \ + lib/cmake/dlpack/dlpackConfigVersion.cmake \ + lib/cmake/dlpack/dlpackTargets.cmake + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/misc/dlpack/distinfo b/misc/dlpack/distinfo new file mode 100644 index 000000000000..64d1d5d2173b --- /dev/null +++ b/misc/dlpack/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1721163327 +SHA256 (dmlc-dlpack-v1.0rc_GH0.tar.gz) = c90ef4ce98c5559a938961aafa17ba5895ef47255ad972c03f6b7cd8fa433aff +SIZE (dmlc-dlpack-v1.0rc_GH0.tar.gz) = 77716 diff --git a/misc/dlpack/pkg-descr b/misc/dlpack/pkg-descr new file mode 100644 index 000000000000..285ded3b888c --- /dev/null +++ b/misc/dlpack/pkg-descr @@ -0,0 +1,10 @@ +DLPack is an open in-memory tensor structure for sharing tensors among +frameworks. + +DLPack enables: +* Easier sharing of operators between deep learning frameworks. +* Easier wrapping of vendor level operator implementations, allowing + collaboration when introducing new devices/ops. +* Quick swapping of backend implementations, like different version of BLAS +* For final users, this could bring more operators, and possibility of mixing + usage between frameworks.