misc/mxnet: Remove port

Unmaintained upstream as retired
This commit is contained in:
2025-04-27 18:24:51 +02:00
parent 8ef6be04aa
commit f92e2d0b69
8 changed files with 1 additions and 310 deletions
+1
View File
@@ -4194,6 +4194,7 @@ misc/lxde-common
misc/mate-user-guide
misc/minuet
misc/molequeue
misc/mxnet
misc/nn-insight
misc/ola
misc/openhantek
-1
View File
@@ -210,7 +210,6 @@
SUBDIR += mmv
SUBDIR += mnn
SUBDIR += mtx
SUBDIR += mxnet
SUBDIR += najitool
SUBDIR += navi
SUBDIR += ncnn
-67
View File
@@ -1,67 +0,0 @@
PORTNAME= mxnet
DISTVERSION= 1.9.1
PORTREVISION= 9
CATEGORIES= misc # machine-learning
MAINTAINER= yuri@FreeBSD.org
COMMENT= Apache MXNet: Ultra-scalable deep learning framework
WWW= https://mxnet.apache.org/ \
https://github.com/apache/mxnet
LICENSE= APACHE20
BROKEN_i386= https://github.com/apache/incubator-mxnet/issues/20832
.if !exists(/usr/include/omp.h)
BROKEN= requires OpenMP support that is missing on this architecture
.endif
DEPRECATED= Project has been retired by Apache, see https://attic.apache.org/projects/mxnet.html
EXPIRATION_DATE= 2025-04-01
BUILD_DEPENDS= googletest>0:devel/googletest
LIB_DEPENDS= libdmlc.so:devel/dmlc-core \
liblapack.so:math/lapack \
libopenblas.so:math/openblas
USES= cmake compiler:c++11-lang localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= apache
GH_PROJECT= incubator-mxnet
GH_TUPLE= apache:tvm:efdac94:tvm/3rdparty/tvm \
dmlc:dlpack:3efc489:dlpack/3rdparty/dlpack \
oneapi-src:oneDNN:f40443c:onednn/3rdparty/mkldnn # same as BUILD_DEPENDS=${LOCALBASE}/include/dnnl.h:math/onednn
USE_LDCONFIG= yes
CMAKE_OFF= USE_CUDA USE_CUDNN USE_MKLDNN USE_NCCL ENABLE_CUDA_RTC \
BUILD_CPP_EXAMPLES USE_JEMALLOC USE_MKL_IF_AVAILABLE
LDFLAGS+= -pthread -lexecinfo
OPTIONS_DEFINE= CPP OPENCV
OPTIONS_DEFAULT= CPP OPENCV
OPTIONS_SUB= yes
CPP_DESC= Install the C++ binding (cpp-package)
CPP_CMAKE_BOOL= USE_CPP_PACKAGE
CPP_USES= python:build
CPP_VARS= BINARY_ALIAS=python=${PYTHON_CMD}
OPENCV_CMAKE_BOOL= USE_OPENCV
OPENCV_LIB_DEPENDS= libopencv_core.so:graphics/opencv \
libopencv_videoio.so:graphics/opencv
.include <bsd.port.pre.mk>
.if ${ARCH} != amd64 && ${ARCH} != i386
CMAKE_OFF+= USE_SSE
.endif
post-patch:
@${FIND} ${WRKSRC} -type f -name '*.h' | \
${XARGS} ${GREP} -l 'template LaunchEx' | \
${XARGS} ${REINPLACE_CMD} -E -e 's/(template LaunchEx)/\1<>/'
post-install-CPP-on: # https://github.com/apache/incubator-mxnet/issues/17080
@cd ${STAGEDIR}${PREFIX} && ${RM} include/mxnet-cpp/.gitignore include/mxnet-cpp/CPPLINT.cfg
.include <bsd.port.post.mk>
-9
View File
@@ -1,9 +0,0 @@
TIMESTAMP = 1652290300
SHA256 (apache-incubator-mxnet-1.9.1_GH0.tar.gz) = cef85932e2b3caead235008473d29512b99581c07da3d10703ff5b6c1fb5bd50
SIZE (apache-incubator-mxnet-1.9.1_GH0.tar.gz) = 23402468
SHA256 (apache-tvm-efdac94_GH0.tar.gz) = 753338c7eca85e1a7e7a02f3acf40ec13a046b9581dafc94c77c3ad986204983
SIZE (apache-tvm-efdac94_GH0.tar.gz) = 3889616
SHA256 (dmlc-dlpack-3efc489_GH0.tar.gz) = e8a3fc92d24eab985a73539b7478da84ebc12cfb33f654d915671748fd3d7d98
SIZE (dmlc-dlpack-3efc489_GH0.tar.gz) = 39598
SHA256 (oneapi-src-oneDNN-f40443c_GH0.tar.gz) = a1c62ae792773ebc0fb581d0953e88bb7d6d4297682d79b7a7fa4ca79a2cfe19
SIZE (oneapi-src-oneDNN-f40443c_GH0.tar.gz) = 9700567
-46
View File
@@ -1,46 +0,0 @@
--- CMakeLists.txt.orig 2021-11-04 20:30:01 UTC
+++ CMakeLists.txt
@@ -7,7 +7,7 @@ if(CMAKE_CROSSCOMPILING)
endif()
project(mxnet C CXX)
-set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 14) # workaround for https://github.com/apache/incubator-mxnet/issues/20784
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)
@@ -511,6 +511,7 @@ if(USE_JEMALLOC)
endif()
endif()
+if (ENABLE_TESTING)
include(CTest)
set(GTEST_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/googletest/googletest")
set(GTEST_INCLUDE_DIR ${GTEST_ROOT}/include)
@@ -521,6 +522,7 @@ set(GTEST_LIBRARY gtest)
add_subdirectory(${GTEST_ROOT})
find_package(GTest REQUIRED)
+endif()
# cudnn detection
if(USE_CUDNN)
@@ -974,7 +976,7 @@ install(TARGETS ${MXNET_INSTALL_TARGETS}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/dlpack/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/dmlc-core/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+#install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/dmlc-core/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/mshadow/mshadow/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/mshadow)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/mxnet/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/mxnet)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/tvm/nnvm/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
@@ -1020,7 +1022,9 @@ if(USE_CPP_PACKAGE)
endif()
endif()
+if(ENABLE_TESTING)
add_subdirectory(tests)
+endif()
# ---[ Linter target
if(MSVC)
@@ -1,44 +0,0 @@
https://github.com/apache/incubator-mxnet/issues/17076
--- src/operator/numpy/np_einsum_op-inl.h.orig 2019-12-15 04:21:16 UTC
+++ src/operator/numpy/np_einsum_op-inl.h
@@ -701,7 +701,7 @@ inline void NumpyEinsumProcess(const std::vector<TBlob
rstride_arr,
nop,
-1,
- reinterpret_cast<DType*>(NULL));
+ (DType*)nullptr);
})
})
})
@@ -947,7 +947,7 @@ inline void NumpyEinsumBackward(const OpStatePtr& stat
if (handle_out) {
temp_inputs.push_back(inputs[0]);
} else {
- temp_inputs.push_back(TBlob(reinterpret_cast<DType*>(NULL),
+ temp_inputs.push_back(TBlob((DType*)nullptr,
paths[i].oshape,
xpu::kDevMask));
}
@@ -958,10 +958,10 @@ inline void NumpyEinsumBackward(const OpStatePtr& stat
temp_outputs.push_back(outputs[idx - 1]);
temp_req.push_back(req[idx - 1]);
} else {
- temp_inputs.push_back(TBlob(reinterpret_cast<DType*>(NULL),
+ temp_inputs.push_back(TBlob((DType*)nullptr,
paths[-idx].oshape,
xpu::kDevMask));
- temp_outputs.push_back(TBlob(reinterpret_cast<DType*>(NULL),
+ temp_outputs.push_back(TBlob((DType*)nullptr,
paths[-idx].oshape,
xpu::kDevMask));
temp_req.push_back(OpReqType::kWriteTo);
@@ -973,7 +973,7 @@ inline void NumpyEinsumBackward(const OpStatePtr& stat
cur_tensordot_tempspace_size =
TensordotBackwardWorkspaceSize<xpu>(paths[i].left_pos,
paths[i].right_pos,
- TBlob(reinterpret_cast<DType*>(NULL),
+ TBlob((DType*)nullptr,
paths[i].tshape,
xpu::kDevMask),
temp_inputs[1],
-11
View File
@@ -1,11 +0,0 @@
Apache MXNet is a deep learning framework designed for both efficiency and
flexibility. It allows you to mix symbolic and imperative programming to
maximize efficiency and productivity. At its core, MXNet contains a dynamic
dependency scheduler that automatically parallelizes both symbolic and
imperative operations on the fly. A graph optimization layer on top of that
makes symbolic execution fast and memory efficient. MXNet is portable and
lightweight, scaling effectively to multiple GPUs and multiple machines.
MXNet is more than a deep learning project. It is a collection of blue prints
and guidelines for building deep learning systems, and interesting insights of
DL systems for hackers.
-132
View File
@@ -1,132 +0,0 @@
include/dlpack/dlpack.h
include/mshadow/README.md
include/mshadow/base.h
include/mshadow/bfloat.h
include/mshadow/cuda/reduce.cuh
include/mshadow/cuda/tensor_gpu-inl.cuh
include/mshadow/dot_engine-inl.h
include/mshadow/expr_engine-inl.h
include/mshadow/expr_scalar-inl.h
include/mshadow/expression.h
include/mshadow/extension.h
include/mshadow/extension/broadcast.h
include/mshadow/extension/broadcast_with_axis.h
include/mshadow/extension/channel_pool.h
include/mshadow/extension/channel_unpool.h
include/mshadow/extension/choose.h
include/mshadow/extension/complex.h
include/mshadow/extension/concat.h
include/mshadow/extension/crop.h
include/mshadow/extension/fill.h
include/mshadow/extension/flip.h
include/mshadow/extension/implicit_gemm.h
include/mshadow/extension/mask.h
include/mshadow/extension/mirror.h
include/mshadow/extension/one_hot.h
include/mshadow/extension/pack_col2patch.h
include/mshadow/extension/pad.h
include/mshadow/extension/range.h
include/mshadow/extension/reduce_with_axis.h
include/mshadow/extension/reduceto1d.h
include/mshadow/extension/reshape.h
include/mshadow/extension/slice.h
include/mshadow/extension/slice_ex.h
include/mshadow/extension/spatial_pool.h
include/mshadow/extension/spatial_unpool.h
include/mshadow/extension/spatial_upsampling_nearest.h
include/mshadow/extension/swapaxis.h
include/mshadow/extension/take.h
include/mshadow/extension/take_grad.h
include/mshadow/extension/transpose.h
include/mshadow/extension/unpack_patch2col.h
include/mshadow/half.h
include/mshadow/half2.h
include/mshadow/io.h
include/mshadow/logging.h
include/mshadow/packet-inl.h
include/mshadow/packet/plain-inl.h
include/mshadow/packet/sse-inl.h
include/mshadow/random.h
include/mshadow/stream_gpu-inl.h
include/mshadow/tensor.h
include/mshadow/tensor_container.h
include/mshadow/tensor_cpu-inl.h
include/mshadow/tensor_gpu-inl.h
%%CPP%%include/mxnet-cpp/MxNetCpp.h
%%CPP%%include/mxnet-cpp/base.h
%%CPP%%include/mxnet-cpp/contrib.h
%%CPP%%include/mxnet-cpp/executor.h
%%CPP%%include/mxnet-cpp/executor.hpp
%%CPP%%include/mxnet-cpp/initializer.h
%%CPP%%include/mxnet-cpp/io.h
%%CPP%%include/mxnet-cpp/io.hpp
%%CPP%%include/mxnet-cpp/kvstore.h
%%CPP%%include/mxnet-cpp/kvstore.hpp
%%CPP%%include/mxnet-cpp/lr_scheduler.h
%%CPP%%include/mxnet-cpp/metric.h
%%CPP%%include/mxnet-cpp/model.h
%%CPP%%include/mxnet-cpp/monitor.h
%%CPP%%include/mxnet-cpp/monitor.hpp
%%CPP%%include/mxnet-cpp/ndarray.h
%%CPP%%include/mxnet-cpp/ndarray.hpp
%%CPP%%include/mxnet-cpp/op.h
%%CPP%%include/mxnet-cpp/op_map.h
%%CPP%%include/mxnet-cpp/op_suppl.h
%%CPP%%include/mxnet-cpp/op_util.h
%%CPP%%include/mxnet-cpp/operator.h
%%CPP%%include/mxnet-cpp/operator.hpp
%%CPP%%include/mxnet-cpp/optimizer.h
%%CPP%%include/mxnet-cpp/optimizer.hpp
%%CPP%%include/mxnet-cpp/shape.h
%%CPP%%include/mxnet-cpp/symbol.h
%%CPP%%include/mxnet-cpp/symbol.hpp
include/mxnet/api_registry.h
include/mxnet/base.h
include/mxnet/c_api.h
include/mxnet/c_api_error.h
include/mxnet/c_api_test.h
include/mxnet/c_predict_api.h
include/mxnet/engine.h
include/mxnet/executor.h
include/mxnet/expr_operator.h
include/mxnet/graph_attr_types.h
include/mxnet/imperative.h
include/mxnet/io.h
include/mxnet/ir/expr.h
include/mxnet/kvstore.h
include/mxnet/lib_api.h
include/mxnet/libinfo.h
include/mxnet/ndarray.h
include/mxnet/node/container.h
include/mxnet/node/node.h
include/mxnet/op_attr_types.h
include/mxnet/operator.h
include/mxnet/operator_util.h
include/mxnet/random_generator.h
include/mxnet/resource.h
include/mxnet/rtc.h
include/mxnet/runtime/c_runtime_api.h
include/mxnet/runtime/container.h
include/mxnet/runtime/data_type.h
include/mxnet/runtime/ffi_helper.h
include/mxnet/runtime/memory.h
include/mxnet/runtime/ndarray.h
include/mxnet/runtime/object.h
include/mxnet/runtime/packed_func.h
include/mxnet/runtime/registry.h
include/mxnet/storage.h
include/mxnet/tensor_blob.h
include/mxnet/tuple.h
include/nnvm/base.h
include/nnvm/c_api.h
include/nnvm/graph.h
include/nnvm/graph_attr_types.h
include/nnvm/layout.h
include/nnvm/node.h
include/nnvm/op.h
include/nnvm/op_attr_types.h
include/nnvm/pass.h
include/nnvm/pass_functions.h
include/nnvm/symbolic.h
include/nnvm/tuple.h
lib/libmxnet.so