aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-07-17 00:03:48 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2024-07-17 00:42:45 +0000
commita98d1afeea5dff82def4f87caf0339634a55198b (patch)
tree29fafffc57a68bd89228db9ad8b10439f9149ec3
parent3ef72314a96b9648672e622bf488e88974c8e4a6 (diff)
misc/dlpack: New port: Common in-memory tensor structure
-rw-r--r--misc/Makefile1
-rw-r--r--misc/dlpack/Makefile26
-rw-r--r--misc/dlpack/distinfo3
-rw-r--r--misc/dlpack/pkg-descr10
4 files changed, 40 insertions, 0 deletions
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.