svn commit: r518338 - in head/misc: . py-tvm

Yuri Victorovich yuri at FreeBSD.org
Sun Nov 24 17:19:13 UTC 2019


Author: yuri
Date: Sun Nov 24 17:19:12 2019
New Revision: 518338
URL: https://svnweb.freebsd.org/changeset/ports/518338

Log:
  New port: misc/py-tvm: Deep learning compiler stack for cpu, gpu and specialized accelerators (python bindings)

Added:
  head/misc/py-tvm/
  head/misc/py-tvm/Makefile   (contents, props changed)
  head/misc/py-tvm/distinfo   (contents, props changed)
  head/misc/py-tvm/pkg-descr   (contents, props changed)
Modified:
  head/misc/Makefile

Modified: head/misc/Makefile
==============================================================================
--- head/misc/Makefile	Sun Nov 24 16:50:55 2019	(r518337)
+++ head/misc/Makefile	Sun Nov 24 17:19:12 2019	(r518338)
@@ -413,6 +413,7 @@
     SUBDIR += py-tflearn
     SUBDIR += py-toil
     SUBDIR += py-tqdm
+    SUBDIR += py-tvm
     SUBDIR += py-yolk
     SUBDIR += pylize
     SUBDIR += pyobd

Added: head/misc/py-tvm/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-tvm/Makefile	Sun Nov 24 17:19:12 2019	(r518338)
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+PORTNAME=	tvm
+DISTVERSION=	0.6.0.rc0
+CATEGORIES=	misc # machine-learning
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri at FreeBSD.org
+COMMENT=	Deep learning compiler stack for cpu, gpu and specialized accelerators
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libtvm.so:misc/tvm
+RUN_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR}
+
+USES=		python
+USE_GITHUB=	yes
+GH_ACCOUNT=	apache
+GH_PROJECT=	incubator-tvm
+USE_PYTHON=	distutils autoplist
+GH_TUPLE=	dmlc:dlpack:0acb731:dlpack/3rdparty/dlpack \
+		dmlc:dmlc-core:808f485:dmlc_core/3rdparty/dmlc-core
+
+BUILD_WRKSRC=	${WRKSRC}/python
+INSTALL_WRKSRC=	${WRKSRC}/python
+
+POST_PLIST=	fix-plist # https://github.com/apache/incubator-tvm/issues/4411
+
+post-patch:
+	@${REINPLACE_CMD} 's|dll_path = \[\]|dll_path = ["${LOCALBASE}/lib"]|' ${BUILD_WRKSRC}/tvm/_ffi/libinfo.py
+
+fix-plist:
+	@${REINPLACE_CMD} -e "s|^tvm.*||" ${TMPPLIST}
+
+post-stage:
+	@${RM} -r ${STAGEDIR}${PREFIX}/tvm # see fix-plist
+	@${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name "*.so" | ${XARGS} ${STRIP_CMD}
+
+.include <bsd.port.mk>

Added: head/misc/py-tvm/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-tvm/distinfo	Sun Nov 24 17:19:12 2019	(r518338)
@@ -0,0 +1,7 @@
+TIMESTAMP = 1574590303
+SHA256 (apache-incubator-tvm-0.6.0.rc0_GH0.tar.gz) = f7fa0431765afa373832f80c12328c2540f86dfb457e068d52ba1e7d868035d9
+SIZE (apache-incubator-tvm-0.6.0.rc0_GH0.tar.gz) = 2977132
+SHA256 (dmlc-dlpack-0acb731_GH0.tar.gz) = e246632ccb182369e78a4028bfd9d3ff8a3507620ba414126fb0e860477248ba
+SIZE (dmlc-dlpack-0acb731_GH0.tar.gz) = 39435
+SHA256 (dmlc-dmlc-core-808f485_GH0.tar.gz) = b04ba9f1931d8b62c1bd3f06373582ce9e393fcd1d7241766c6e7d7b6119eca0
+SIZE (dmlc-dmlc-core-808f485_GH0.tar.gz) = 250572

Added: head/misc/py-tvm/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-tvm/pkg-descr	Sun Nov 24 17:19:12 2019	(r518338)
@@ -0,0 +1,8 @@
+The Python bindings for TVM.
+
+TVM is a compiler stack for deep learning systems. It is designed to close the
+gap between the productivity-focused deep learning frameworks, and the
+performance- and efficiency-focused hardware backends. TVM works with deep
+learning frameworks to provide end to end compilation to different backends.
+
+WWW: https://tvm.ai/


More information about the svn-ports-head mailing list