paddlepaddle-gpu的安装 cuda9.0 cudnn7.3.1

1.安装anaconda

2.安装cuda9.0  cudnn7.3.1

3.安装paddlepaddle-gpu,

遇到的问题:

1.Failed to find dynamic library: libcublas.so ( libcublas.so: cannot open shared object file: No such file or directory )

解决方法:定位libcublas.so,使用方法,locate libcublas.so,选择~anaconda2/lib/libcublas.so为目标

使用 export LD_LIBRARY_PATH=~anaconda2/lib/ 或者写到~/.bash_profile中

2.paddle.fluid.core_avx.EnforceNotMet: Invoke operator fill_constant error

Enforce failed. Expected allocating <= available, but received allocating:6976001517 > available:4352573184.

解放方法:export FLAGS_fraction_of_gpu_memory_to_use=0.7 # 显存使用的比例,显存不足可适当增大,最大为1

参考:http://www.85wx.com/gongzhonghaojiaocheng/20190405/31126.html


# 显存清理的阈值,显存不足可适当减小,最小为0,为负数时不启用
export FLAGS_eager_delete_tensor_gb=0.7

你可能感兴趣的:(数据挖掘,机器学习)