最近要用到FFT, 找了许多免费的go下资源, 比较后觉得gosl最好. 主要是速度快, 内容全.
它用到硬件加速, 其中有个MKL包下载比较麻烦, 搜索了很多资料后发现了一个简单办法. 全套命令如下:
1, sudo apt-get install libopenmpi-dev libhwloc-dev libsuitesparse-dev libmumps-dev gfortran libvtk6-dev python-scipy python-matplotlib dvipng libfftw3-dev libfftw3-mpi-dev libmetis-dev liblapacke-dev libopenblas-dev libhdf5-dev git
2, cd /tmp
3, wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
4, sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
5, sudo wget https://apt.repos.intel.com/setup/intelproducts.list -O /etc/apt/sources.list.d/intelproducts.list
6, sudo apt-get update
7, apt list|grep intel- 查看安装包及版本号
8, sudo apt-get install intel-mkl-2018.3-051 intel-ipp-2018.3-051 intel-daal-2018.3-051 intel-tbb-2018.4-051 intel-mpi-2018.3-051 (版本可以另选)
9, mkdir -p ${GOPATH%:*}/src/github.com/cpmech 10, cd ${GOPATH%:*}/src/github.com/cpmech 11, git clone https://github.com/cpmech/gosl.git 12, cd gosl 13, ./all.bash
有疑问加站长微信联系(非本文作者)