编译安装 flashlight
最终结论
vcpkg版本的安装不适合国内,因为不可访问。所以使用源代码编译版本。
!!!注意!!!
不好意思各位:按照如下教程只能保证编译通过,但是最终测试遇到库依赖的问题,而且因为sndfile库破坏了系统安装,导致soundfile包无法加载flac文件,因此不建议在裸机上尝试
!!!注意!!!
文章目录
试验条件
- Ubuntu 20.04.2 LTS
- NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile]
- PyTorch1.8.0 CUDA11.1.1 cuDNN8.0.5
尝试1 : 使用build vcpkg是行不通的
原始文档vcpkg很方便,但是实际上…我家在火星,网络不好。在这里贴一下原文,但是然并卵。
Installing Linux Developer Tools
Across the different distros of Linux, there are different packages you'll need to install:
Debian, Ubuntu, popOS, and other Debian-based distributions:
$ sudo apt-get update
$ sudo apt-get install build-essential tar curl zip unzip
CentOS
$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-7
$ scl enable devtoolset-7 bash
For any other distributions, make sure you're installing g++ 6 or above. If you want to add instructions for your specific distro, please open a PR!
坑0 : 安装vcpkg
sudo apt-get install build-essential tar curl zip unzip
git clone https://github.com/NVIDIA/PyProf.git
#编译安装
Notice:Failed. Status: 7;“Couldn’t connect to server”
当前anaconda和apt都不提供vcpkg的二进制包,所以需要从源代码安装。
#下载安装 vcpkg
git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.sh
#vcpkg使用的cmake版本与系统的不一致将自行下载
尝试2 : 使用源代码安装方式
Step1 :下载安装arrayfire
1.1 安装 Linux Developer Tools
$ sudo apt-get update
$ sudo apt-get install build-essential tar curl zip unzip
1.2 使用VCPKG安装Flashlight
下载ArrayFire-v3.8.0_Linux_x86_64.sh到/opt,解压
但是很快,伟大的Failed. Status: 7;“Couldn’t connect to server”</