Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : pytorch | name : pytorch | ||||
| version : 1.0.1 | version : 1.2.0 | ||||
| release : 1 | release : 2 | ||||
| source : | source : | ||||
| - git|https://github.com/pytorch/pytorch : v1.0.1 | - git|https://github.com/pytorch/pytorch : v1.2.0 | ||||
| license : BSD-3-Clause | license : BSD-3-Clause | ||||
| component : programming.python | component : programming.python | ||||
| summary : Tensors and Dynamic neural networks in Python with strong GPU acceleration | summary : | ||||
| - Tensors and Dynamic neural networks in Python with strong GPU acceleration | |||||
| - devel : PyTorch C++ API | |||||
JoshStrobl: Should be programming.devel, not sure why you'd change this. | |||||
Done Inline Actionsypkg should automatically set it to programming.devel JoshStrobl: ypkg should automatically set it to programming.devel | |||||
Done Inline ActionsShould be fixed now xulongwu4: Should be fixed now | |||||
| description: | | description: | | ||||
| PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. | PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. | ||||
| patterns : | |||||
| - devel : | |||||
| - /usr/lib64 # Install /usr/lib64/lib*.so.* to the devel subpackage | |||||
| optimize : | |||||
| - speed | |||||
| builddeps : | builddeps : | ||||
| - pkgconfig(eigen3) | - pkgconfig(eigen3) | ||||
| - pkgconfig(gflags) | - pkgconfig(gflags) | ||||
| - pkgconfig(libavcodec) | - pkgconfig(libavcodec) | ||||
| - pkgconfig(libglog) | - pkgconfig(libglog) | ||||
| - pkgconfig(libzmq) | - pkgconfig(libzmq) | ||||
| - pkgconfig(ompi) | - pkgconfig(ompi) | ||||
| - pkgconfig(openblas) | - pkgconfig(openblas) | ||||
| - pkgconfig(opencv) | - pkgconfig(opencv) | ||||
| - pkgconfig(protobuf) | - pkgconfig(protobuf) | ||||
| - pkgconfig(python3) | - pkgconfig(python3) | ||||
| - leveldb-devel | - leveldb-devel | ||||
| - lmdb-devel | - lmdb-devel | ||||
| - numpy | - numpy | ||||
| - python-typing | - python-typing | ||||
| - pyyaml | - pyyaml | ||||
| - snappy-devel | - snappy-devel | ||||
| rundeps : | rundeps : | ||||
| - numpy | - numpy | ||||
| - python-cffi | - python-cffi | ||||
| - pyyaml | - pyyaml | ||||
| setup : | | |||||
| %python3_setup --cmake-only | |||||
| build : | | build : | | ||||
| export BUILD_BINARY=1 | pushd ../py3build | ||||
| export USE_FFMPEG=1 | %cmake build \ | ||||
| export USE_LEVELDB=1 | -DCMAKE_INSTALL_PREFIX=$PWD/torch \ | ||||
| export USE_LMDB=1 | -DBLAS=OpenBLAS \ | ||||
| export USE_OPENCV=1 | -DBUILD_BINARY=ON \ | ||||
| export EXTRA_CAFFE2_CMAKE_FLAGS="-DBLAS=OpenBLAS | -DBUILD_CUSTOM_PROTOBUF=OFF \ | ||||
| -DBUILD_CUSTOM_PROTOBUF=OFF | -DUSE_FFMPEG=ON -DUSE_LEVELDB=ON \ | ||||
| -DUSE_GFLAGS=ON | -DUSE_LMDB=ON \ | ||||
| -DUSE_GLOG=ON | -DUSE_MKLDNN=OFF \ | ||||
| -DUSE_OPENMP=ON | -DUSE_OPENCV=ON \ | ||||
| -DUSE_SYSTEM_EIGEN_INSTALL=ON | -DUSE_GFLAGS=ON \ | ||||
| -DUSE_ZMQ=ON" | -DUSE_GLOG=ON \ | ||||
| -DUSE_SYSTEM_EIGEN_INSTALL=ON \ | |||||
| # Force to use system protobuf | -DUSE_ZMQ=ON | ||||
| rm -rfv third_party/protobuf | python3 setup.py build | ||||
| popd | |||||
| %python3_setup | |||||
| install : | | install : | | ||||
| %python3_install --skip-build | %python3_install | ||||
| install -dm00755 $installdir/usr/bin $installdir/usr/include $installdir/%libdir%/cmake | |||||
| TORCH_PATH=$(python3 -c "import site; print(site.getsitepackages()[0])")/torch | |||||
| for f in $installdir/$TORCH_PATH/bin/*; do | |||||
| ln -sv $TORCH_PATH/bin/`basename $f` $installdir/usr/bin | |||||
| done | |||||
| # Configure libtorch | |||||
| for f in $installdir/$TORCH_PATH/share/cmake/*; do | |||||
| ln -sv $TORCH_PATH/share/cmake/`basename $f` $installdir/%libdir%/cmake | |||||
| done | |||||
| for f in $installdir/$TORCH_PATH/include/*; do | |||||
| ln -sv $TORCH_PATH/include/`basename $f` $installdir/usr/include | |||||
| done | |||||
| for f in $installdir/$TORCH_PATH/lib/lib*.so*; do | |||||
| ln -sv $TORCH_PATH/lib/`basename $f` $installdir/%libdir% | |||||
| done | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.
Should be programming.devel, not sure why you'd change this.