diff options
author | Daniel Bermond | 2018-10-03 22:03:19 +0000 |
---|---|---|
committer | Daniel Bermond | 2018-10-03 22:03:19 +0000 |
commit | ec6cb7c6c9556ee02daa847982a756b04f973c8d (patch) | |
tree | 9cb8334cf1784ad4215cf84ffcceb6d6039a697e /PKGBUILD | |
parent | a9977e6f6078044fd23626f65b68159eeac003ae (diff) | |
download | aur-ec6cb7c6c9556ee02daa847982a756b04f973c8d.tar.gz |
Updated to version 1.0rc1
opencl is now disabled due to an upstream build error [1].
References
----------
[1] https://github.com/pytorch/pytorch/issues/9990
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 111 |
1 files changed, 40 insertions, 71 deletions
@@ -1,41 +1,37 @@ # Maintainer : Daniel Bermond < yahoo-com: danielbermond > -# third_party with no stable release at the target commit -_nanopb_commit='14efb1a47a496652ab08b1ebcefb0ea24ae4a5e4' -_pybind11_commit='add56ccdcac23a6c522a2c1174a866e293c61dab' +_catch_commit='0a34cc201ef28bf25c88b0062f331369596cb7b7' +_pybind11_commit='5c8746ff135abb390bf95944be593e895a586a50' _cub_commit='285aeebaa34b0e8a7670867a2e66c1a52d998d6a' -_eigen_commit='e9e95489a0b241412e31f0525e85b2fab386c786' -_googletest_commit='69e48e92de43960a316a826293510b7b3deb9eca' +_eigen_commit='cafae68f33f7f41270b2e8c2dd181f510aa4d918' +_googletest_commit='2fe3bd994b3189899d93f1d5a881e725e046fdc2' _nervanagpu_commit='d4eefd50fbd7d34a17dddbc829888835d67b5f4a' _benchmark_commit='505be96ab23056580a3a2315abba048f4428b04e' +_protobuf_commit='2761122b810fe8861004ae785cc3ab39f384d342' _ios_cmake_commit='8abaed637d56f1337d6e1d2c4026e25c1eade724' -_nnpack_commit='3eb0d453662d05a708f43b108bed9e17b705383e' -_gloo_commit='69eef748cc1dfbe0fefed69b34e6545495f67ac5' +_nnpack_commit='af40ea7d12702f8ae55aeb13701c09cad09334c3' +_gloo_commit='aa0d2e3f8aa4f9cee5ffa46070491cf1ed6aae70' _nnpdeps_pthreadp_commit='2b06b31f6a315162348e1f3c24325eedaf6cc559' _nnpdeps_fxdiv_commit='811b482bcd9e8d98ad80c6c78d5302bb830184b0' _nnpdeps_fp16_commit='43d6d17df48ebf622587e7ed9472ea76573799b9' _nnpdeps_psimd_commit='4ac61b112252778b174575931c641bef661ab3cd' _zstd_commit='aec56a52fbab207fc639a1937d1e708a282edca8' -_cpuinfo_commit='1e6c8c99d27f2b5eb9d2e6231055c6a4115b85e5' +_cpuinfo_commit='4e8f04355892c5deb64a51731a6afdb544a4294d' _python_enum_commit='4cfedc426c4e2fc52e3f5c2b4297e15ed8d6b8c7' _python_peachpy_commit='07d8fde8ac45d7705129475c0f94ed8925b93473' +_python_six_commit='15e31431af97e5e64b80af0a3f598d382bcdd49a' _computelibrary_commit='292227986edb37b01061afcad6df18ba9d6ccbeb' -_onnx_commit='b2817a682f25f960586f06caa539bbbd7a96b859' +_onnx_commit='c4734c6200cb42c1aa36eb1f0160041d2401644d' +_cereal_commit='51cbda5f30e56c801c07fe3d3aba5d7fb9e6cca4' _onnx_tensorrt_commit='fa0964e8477fc004ee2f49ee77ffce0bf7f711a9' _sleef_commit='6ff7a135a1e31979d1e1844a2e7171dfbd34f54f' +_ideep_commit='dedff8fb8193fe3a1ea893d4bc852f8ea395b6b3' -# third_party with stable release at the target commit -_catch_version='2.2.1' # commit '0a34cc201ef28bf25c88b0062f331369596cb7b7' is version '2.2.1' -_protobuf_version='3.5.0' # commit '2761122b810fe8861004ae785cc3ab39f384d342' is version '3.5.0' -_python_six_version='1.11.0' # commit '15e31431af97e5e64b80af0a3f598d382bcdd49a' is version '1.11.0' -_cereal_version='1.2.2' # commit '51cbda5f30e56c801c07fe3d3aba5d7fb9e6cca4' is version '1.2.2' -_ideep_version='2.0.0_b1' # commit '4bd9a6800bf7db068187619e0582d34dec9651dc' is version '2.0.0_b1' - -_pytorchver=0.4.1 # pytorch stable release version +_pytorchver=1.0rc1 # pytorch stable release version pkgname=caffe2 pkgver="0.8.2.pytorch.${_pytorchver}" -pkgrel=2 +pkgrel=1 pkgdesc='A new lightweight, modular, and scalable deep learning framework' arch=('i686' 'x86_64') url='http://caffe2.ai/' @@ -46,7 +42,7 @@ depends=( 'google-glog' 'protobuf' 'lapack' 'python' 'python-numpy' 'python-protobuf' # not required but enabled in build: 'gflags' 'gtest' 'openmp' 'leveldb' 'lmdb' 'numactl' 'openmpi' 'snappy' - 'zeromq' 'hiredis' 'ocl-icd' 'opencv' 'gtk3' 'ffmpeg' + 'zeromq' 'hiredis' 'opencv' 'gtk3' 'ffmpeg' # python: 'python-flask' 'python-future' 'graphviz' 'python-hypothesis' 'python-jupyter_core' 'python-matplotlib' 'python-pydot' 'python-yaml' @@ -59,24 +55,22 @@ depends=( 'python-nvd3' 'python-scikit-image' 'python-glog' 'python-leveldb' 'python-lmdb' ) -makedepends=('git' 'cmake' 'opencl-headers') -conflicts=('caffe2-git' 'caffe2-cuda' 'caffe2-cuda-git' 'caffe2-cpu' 'caffe2-cpu-git' - 'caffe' 'caffe-git' 'caffe-cuda' 'caffe-cuda-git') +makedepends=('git' 'cmake') +conflicts=('caffe2-git' 'caffe2-cuda' 'caffe2-cuda-git') replaces=('caffe2-cpu') options=('!emptydirs') source=( # main source: "pytorch-${_pytorchver}.tar.gz"::"https://github.com/pytorch/pytorch/archive/v${_pytorchver}.tar.gz" # third party: - "caffe2-thirdparty-catch-${_catch_version}.tar.gz"::"https://github.com/catchorg/Catch2/archive/v${_catch_version}.tar.gz" - 'caffe2-thirdparty-nanopb-git'::"git+https://github.com/nanopb/nanopb.git#commit=${_nanopb_commit}" + 'caffe2-thirdparty-catch-git'::"git+https://github.com/catchorg/Catch2.git#commit=${_catch_commit}" 'caffe2-thirdparty-pybind11-git'::"git+https://github.com/pybind/pybind11.git#commit=${_pybind11_commit}" 'caffe2-thirdparty-cub-git'::"git+https://github.com/NVlabs/cub.git#commit=${_cub_commit}" 'caffe2-thirdparty-eigen-git'::"git+https://github.com/eigenteam/eigen-git-mirror.git#commit=${_eigen_commit}" 'caffe2-thirdparty-googletest-git'::"git+https://github.com/google/googletest.git#commit=${_googletest_commit}" 'caffe2-thirdparty-nervanagpu-git'::"git+https://github.com/NervanaSystems/nervanagpu.git#commit=${_nervanagpu_commit}" 'caffe2-thirdparty-benchmark-git'::"git+https://github.com/google/benchmark.git#commit=${_benchmark_commit}" - "caffe2-thirdparty-protobuf-${_protobuf_version}.tar.gz"::"https://github.com/google/protobuf/archive/v${_protobuf_version}.tar.gz" + 'caffe2-thirdparty-protobuf-git'::"git+https://github.com/google/protobuf.git#commit=${_protobuf_commit}" 'caffe2-thirdparty-ios-cmake-git'::"git+https://github.com/Yangqing/ios-cmake.git#commit=${_ios_cmake_commit}" 'caffe2-thirdparty-NNPACK-git'::"git+https://github.com/Maratyszcza/NNPACK.git#commit=${_nnpack_commit}" 'caffe2-thirdparty-gloo-git'::"git+https://github.com/facebookincubator/gloo.git#commit=${_gloo_commit}" @@ -88,22 +82,17 @@ source=( 'caffe2-thirdparty-cpuinfo-git'::"git+https://github.com/Maratyszcza/cpuinfo.git#commit=${_cpuinfo_commit}" 'caffe2-thirdparty-python-enum-git'::"git+https://github.com/PeachPy/enum34.git#commit=${_python_enum_commit}" 'caffe2-thirdparty-python-peachpy-git'::"git+https://github.com/Maratyszcza/PeachPy.git#commit=${_python_peachpy_commit}" - "caffe2-thirdparty-python-six-${_python_six_version}.tar.gz"::"https://github.com/benjaminp/six/archive/${_python_six_version}.tar.gz" + 'caffe2-thirdparty-python-six-git'::"git+https://github.com/benjaminp/six.git#commit=${_python_six_commit}" 'caffe2-thirdparty-ComputeLibrary-git'::"git+https://github.com/ARM-software/ComputeLibrary.git#commit=${_computelibrary_commit}" 'caffe2-thirdparty-onnx-git'::"git+https://github.com/onnx/onnx.git#commit=${_onnx_commit}" - "caffe2-thirdparty-cereal-${_cereal_version}.tar.gz"::"https://github.com/USCiLab/cereal/archive/v${_cereal_version}.tar.gz" + 'caffe2-thirdparty-cereal-git'::"git+https://github.com/USCiLab/cereal.git#commit=${_cereal_commit}" 'caffe2-thirdparty-onnx-tensorrt-git'::"git+https://github.com/onnx/onnx-tensorrt.git#commit=${_onnx_tensorrt_commit}" 'caffe2-thirdparty-sleef-git'::"git+https://github.com/shibatch/sleef.git#commit=${_sleef_commit}" - "caffe2-thirdparty-ideep-${_ideep_version}.tar.gz"::"https://github.com/intel/ideep/archive/v${_ideep_version}.tar.gz" -) -noextract=("caffe2-thirdparty-catch-${_catch_version}.tar.gz" - "caffe2-thirdparty-protobuf-${_protobuf_version}.tar.gz" - "caffe2-thirdparty-python-six-${_python_six_version}.tar.gz" - "caffe2-thirdparty-cereal-${_cereal_version}.tar.gz" - "caffe2-thirdparty-ideep-${_ideep_version}.tar.gz" + 'caffe2-thirdparty-ideep-git'::"git+https://github.com/intel/ideep.git#commit=${_ideep_commit}" ) -sha256sums=('6ab03fa707909e5fb6209a3a98d24c25cd64d9590f3e05d6e8490e4d07b3a765' - '3938bc896f8de570bc56d25606fc128437ee53590a95cf3e005710176a1a1ce4' +sha256sums=('473cd4af032ddec4279cf3a90dd9508b6fa0be5cd89c842945f88b5a576a4231' + 'SKIP' + 'SKIP' 'SKIP' 'SKIP' 'SKIP' @@ -111,7 +100,6 @@ sha256sums=('6ab03fa707909e5fb6209a3a98d24c25cd64d9590f3e05d6e8490e4d07b3a765' 'SKIP' 'SKIP' 'SKIP' - '0cc6607e2daa675101e9b7398a436f09167dffb8ca0489b0307ff7260498c13c' 'SKIP' 'SKIP' 'SKIP' @@ -123,42 +111,27 @@ sha256sums=('6ab03fa707909e5fb6209a3a98d24c25cd64d9590f3e05d6e8490e4d07b3a765' 'SKIP' 'SKIP' 'SKIP' - '927dc6fcfccd4e32e1ce161a20bf8cda39d8c9d5f7a845774486907178f69bd4' 'SKIP' 'SKIP' - '1921f26d2e1daf9132da3c432e2fd02093ecaedf846e65d7679ddf868c7289c4' 'SKIP' 'SKIP' - '9fa1e75035273494d12425194140b3a884b2e70552b4bad3a111e861881876b5') + 'SKIP' + 'SKIP') prepare() { - local _thirdparty_git_list="nanopb pybind11 cub eigen googletest nervanagpu \ - benchmark ios-cmake NNPACK gloo zstd cpuinfo \ - python-enum python-peachpy ComputeLibrary onnx \ - onnx-tensorrt sleef" + cd "${srcdir}/pytorch-${_pytorchver}/third_party" + + local _thirdparty_list="catch pybind11 cub eigen googletest nervanagpu \ + benchmark protobuf ios-cmake NNPACK gloo zstd \ + cpuinfo python-enum python-peachpy python-six \ + ComputeLibrary onnx cereal onnx-tensorrt sleef \ + ideep" local _nnpackdeps_list='pthreadpool FXdiv FP16 psimd' local _component - cd "${srcdir}/pytorch-${_pytorchver}/third_party/catch" - bsdtar -xf "${srcdir}/caffe2-thirdparty-catch-${_catch_version}.tar.gz" -s'|[^/]*/||' - - cd "${srcdir}/pytorch-${_pytorchver}/third_party/protobuf" - bsdtar -xf "${srcdir}/caffe2-thirdparty-protobuf-${_protobuf_version}.tar.gz" -s'|[^/]*/||' - - cd "${srcdir}/pytorch-${_pytorchver}/third_party/python-six" - bsdtar -xf "${srcdir}/caffe2-thirdparty-python-six-${_python_six_version}.tar.gz" -s'|[^/]*/||' - - cd "${srcdir}/pytorch-${_pytorchver}/third_party/cereal" - bsdtar -xf "${srcdir}/caffe2-thirdparty-cereal-${_cereal_version}.tar.gz" -s'|[^/]*/||' - - cd "${srcdir}/pytorch-${_pytorchver}/third_party/ideep" - bsdtar -xf "${srcdir}/caffe2-thirdparty-ideep-${_ideep_version}.tar.gz" -s'|[^/]*/||' - - cd "${srcdir}/pytorch-${_pytorchver}/third_party" - - for _component in $_thirdparty_git_list + for _component in $_thirdparty_list do rm -rf "$_component" ln -sf "${srcdir}/caffe2-thirdparty-${_component}-git" "${_component}" @@ -192,9 +165,6 @@ build() { \ -DCMAKE_INSTALL_LIBDIR:PATH='lib' \ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ - -DCMAKE_SKIP_INSTALL_RPATH:BOOL='NO' \ - -DCMAKE_SKIP_RPATH:BOOL='NO' \ - -DCMAKE_VERBOSE_MAKEFILE:BOOL='FALSE' \ \ -DGLOO_STATIC_OR_SHARED:STRING='STATIC' \ \ @@ -206,11 +176,9 @@ build() { \ -DUSE_ACL:BOOL='OFF' \ -DUSE_ASAN:BOOL='ON' \ - -DUSE_ATEN:BOOL='OFF' \ -DUSE_CUDA:BOOL='OFF' \ -DUSE_CUDNN:BOOL='OFF' \ - -DUSE_DISTRIBUTED:BOOL='OFF' \ - -DUSE_DISTRIBUTED_MW:BOOL='OFF' \ + -DUSE_DISTRIBUTED:BOOL='ON' \ -DUSE_FFMPEG:BOOL='ON' \ -DUSE_GFLAGS:BOOL='ON' \ -DUSE_GLOG:BOOL='ON' \ @@ -233,7 +201,7 @@ build() { -DUSE_NUMA:BOOL='ON' \ -DUSE_NVRTC:BOOL='OFF' \ -DUSE_OBSERVERS:BOOL='ON' \ - -DUSE_OPENCL:BOOL='ON' \ + -DUSE_OPENCL:BOOL='OFF' \ -DUSE_OPENCV:BOOL='ON' \ -DUSE_OPENMP:BOOL='ON' \ -DUSE_PROF:BOOL='OFF' \ @@ -241,6 +209,7 @@ build() { -DUSE_ROCKSDB:BOOL='OFF' \ -DUSE_ROCM:BOOL='OFF' \ -DUSE_SNPE:BOOL='OFF' \ + -DUSE_SYSTEM_EIGEN_INSTALL:BOOL='OFF' \ -DUSE_SYSTEM_NCCL:BOOL='OFF' \ -DUSE_TENSORRT:BOOL='OFF' \ -DUSE_ZMQ:BOOL='ON' \ @@ -260,7 +229,7 @@ package() { # remove unneeded files local _entry local _exclude_dirs - local _exclude_lib + local _exclude_libs _exclude_dirs=($(find "${pkgdir}/usr/include" -mindepth 1 -maxdepth 1 -type d ! -name 'caffe*')) _exclude_libs=($(find -L "${pkgdir}/usr/lib" -maxdepth 1 -type f ! -name 'libcaffe*')) rm -f "$pkgdir"/usr/bin/{protoc,unzstd,zstd{cat,mt,}} @@ -268,7 +237,7 @@ package() { rm -rf "$pkgdir"/usr/lib/cmake/protobuf rm -f "$pkgdir"/usr/lib/pkgconfig/{protobuf-lite,protobuf}.pc rm -rf "$pkgdir"/usr/share/pkgconfig - rm -rf "$pkgdir"/usr/share/{ATen,cmake/ATen} + rm -rf "$pkgdir"/usr/share/{ATen,cmake/{ATen,ONNX}} rm -f "$pkgdir"/usr/share/man/man1/{unzstd,zstd{cat,}}.1 for _entry in ${_exclude_dirs[@]} ${_exclude_libs[@]} do |