pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-torch: openmp error fixed, some further errors TODO



Module Name:	pkgsrc-wip
Committed By:	mayuresh <mayuresh%acm.org@localhost>
Pushed By:	mayuresh
Date:		Fri Jul 22 11:36:52 2022 +0530
Changeset:	1cd318199898d96087f1aebe51a71b014751e3d7

Modified Files:
	py-torch/Makefile
	py-torch/TODO

Log Message:
py-torch: openmp error fixed, some further errors TODO

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1cd318199898d96087f1aebe51a71b014751e3d7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-torch/Makefile | 6 ++++--
 py-torch/TODO     | 9 ---------
 2 files changed, 4 insertions(+), 11 deletions(-)

diffs:
diff --git a/py-torch/Makefile b/py-torch/Makefile
index b3bac43425..d1382b1036 100644
--- a/py-torch/Makefile
+++ b/py-torch/Makefile
@@ -16,10 +16,12 @@ COMMENT=	Tensors and Dynamic neural networks in Python with GPU acceleration
 #USE_CUDA=	0
 
 DEPENDS+=	${PYPKGPREFIX}-yaml>=5.4.1:../../textproc/py-yaml
+DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=3.10.0.2:../../devel/py-typing-extensions
 DEPENDS+=	git-base-[0-9]*:../../devel/git-base
 DEPENDS+=	cmake>=3.17:../../devel/cmake
 
 USE_LANGUAGES+=	c c++
+CFLAGS+=	-fopenmp
 
 WRKSRC=	${WRKDIR}/pytorch
 
@@ -33,8 +35,8 @@ post-extract:
 	#git submodule update --init --recursive --jobs 0
 
 # url2pkg-marker (please do not remove this line.)
-.include "../../lang/python/egg.mk"
 .include "../../devel/google-glog/buildlink3.mk"
+.include "../../lang/python/egg.mk"
 .include "../../math/py-numpy/buildlink3.mk"
-.include "../../parallel/openmp/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
+.include "../../parallel/openmp/buildlink3.mk"
diff --git a/py-torch/TODO b/py-torch/TODO
index bdb0d6e739..6545b036cf 100644
--- a/py-torch/TODO
+++ b/py-torch/TODO
@@ -1,14 +1,5 @@
-numpy dep
-
-OpenMP error
-
 Watch CMake warnings, some of those could be addressable
 
-There are errors suggesting to look at the choice of c and c++ compiler.
-
-Suggested compiler by the package is clang. But how does it work when there are
-buildlink deps like google-glog?
-
 Also hwo to set USE_CUDA=0 for the entire build. Do not know exactly which all
 phases require it?
 


Home | Main Index | Thread Index | Old Index