mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
misc/pytorch: fix packaging on non-amd64
AVX gets built only on amd64.
This commit is contained in:
parent
e00aca7abc
commit
b83abe2002
2 changed files with 12 additions and 4 deletions
|
@ -51,6 +51,14 @@ PYTHON_BUILD_DEPENDS= ${PYTHON_PY_DEPENDS} \
|
||||||
pybind11>0:devel/pybind11
|
pybind11>0:devel/pybind11
|
||||||
PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS}
|
PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS}
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if ${ARCH} == "amd64"
|
||||||
|
PLIST_SUB+= AMD64=""
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= AMD64="@comment "
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
# replace malloc.h -> stdlib.h in many places
|
# replace malloc.h -> stdlib.h in many places
|
||||||
@cd ${WRKSRC} && for f in $$(${GREP} -rl "include <malloc\.h>" * | ${GREP} -E "\.(c|cpp|h|hpp)$$"); do \
|
@cd ${WRKSRC} && for f in $$(${GREP} -rl "include <malloc\.h>" * | ${GREP} -E "\.(c|cpp|h|hpp)$$"); do \
|
||||||
|
@ -63,4 +71,4 @@ post-install:
|
||||||
# https://github.com/pytorch/pytorch/issues/24417
|
# https://github.com/pytorch/pytorch/issues/24417
|
||||||
@${FIND} ${STAGEDIR} -type d -empty -delete
|
@${FIND} ${STAGEDIR} -type d -empty -delete
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -8899,9 +8899,9 @@ include/torch/custom_class_detail.h
|
||||||
include/torch/extension.h
|
include/torch/extension.h
|
||||||
include/torch/library.h
|
include/torch/library.h
|
||||||
include/torch/script.h
|
include/torch/script.h
|
||||||
lib/libCaffe2_perfkernels_avx.a
|
%%AMD64%%lib/libCaffe2_perfkernels_avx.a
|
||||||
lib/libCaffe2_perfkernels_avx2.a
|
%%AMD64%%lib/libCaffe2_perfkernels_avx2.a
|
||||||
lib/libCaffe2_perfkernels_avx512.a
|
%%AMD64%%lib/libCaffe2_perfkernels_avx512.a
|
||||||
lib/libc10.so
|
lib/libc10.so
|
||||||
lib/libclog.a
|
lib/libclog.a
|
||||||
lib/libcpuinfo.a
|
lib/libcpuinfo.a
|
||||||
|
|
Loading…
Add table
Reference in a new issue