過程:i7筆記本一臺(tái), 960m和intel雙顯卡(痛苦之源)
流程參考https://blog.csdn.net/botao_li/article/details/80745535
雙顯卡裝linux毛病多揭朝,幾個(gè)要避開的坑:
1. 不要直接下各種官網(wǎng)地方推薦你的390穩(wěn)定版队贱,加ppa那個(gè)方法也不對(duì)。CUDA9.2需要396版潭袱,對(duì)就是那個(gè)short lived branch 396版本柱嫌。
驅(qū)動(dòng)下載地址:https://www.nvidia.cn/object/unix-cn.html
2. 安裝驅(qū)動(dòng)前要關(guān)gdm進(jìn)控制臺(tái)($ service gdm stop),裝驅(qū)動(dòng)要加參數(shù) --no-opengl-files, 忘了加會(huì)進(jìn)入login死循環(huán)屯换,解決辦法编丘,1804進(jìn)wayLand模式,或者另一臺(tái)機(jī)器ssh上來(小心彤悔!Ubuntu1804默認(rèn)沒有開SSH)嘉抓,卸載驅(qū)動(dòng),重新裝蜗巧。
3. 后面就是裝CUDA掌眠,cuDNN,沒什么特別的幕屹。
4. 我是Anaconda 方式裝的Tensorflow
conda install tensorflow-gpu
之后蓝丙,就可以愉快的使用了级遭。
Detected 1 CUDA Capable device(s)
Device 0: "GeForce GTX 760M"
? CUDA Driver Version / Runtime Version? ? ? ? ? 9.2 / 9.2
? CUDA Capability Major/Minor version number:? ? 3.0
? Total amount of global memory:? ? ? ? ? ? ? ? 2002 MBytes (2099511296 bytes)
? ( 4) Multiprocessors, (192) CUDA Cores/MP:? ? 768 CUDA Cores
? GPU Max Clock rate:? ? ? ? ? ? ? ? ? ? ? ? ? ? 719 MHz (0.72 GHz)
? Memory Clock rate:? ? ? ? ? ? ? ? ? ? ? ? ? ? 2004 Mhz
? Memory Bus Width:? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 128-bit
? L2 Cache Size:? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 262144 bytes
? Maximum Texture Dimension Size (x,y,z)? ? ? ? 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
? Maximum Layered 1D Texture Size, (num) layers? 1D=(16384), 2048 layers
? Maximum Layered 2D Texture Size, (num) layers? 2D=(16384, 16384), 2048 layers
? Total amount of constant memory:? ? ? ? ? ? ? 65536 bytes
? Total amount of shared memory per block:? ? ? 49152 bytes
? Total number of registers available per block: 65536
? Warp size:? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 32
? Maximum number of threads per multiprocessor:? 2048
? Maximum number of threads per block:? ? ? ? ? 1024
? Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
? Max dimension size of a grid size? ? (x,y,z): (2147483647, 65535, 65535)
? Maximum memory pitch:? ? ? ? ? ? ? ? ? ? ? ? ? 2147483647 bytes
? Texture alignment:? ? ? ? ? ? ? ? ? ? ? ? ? ? 512 bytes
? Concurrent copy and kernel execution:? ? ? ? ? Yes with 1 copy engine(s)
? Run time limit on kernels:? ? ? ? ? ? ? ? ? ? Yes
? Integrated GPU sharing Host Memory:? ? ? ? ? ? No
? Support host page-locked memory mapping:? ? ? Yes
? Alignment requirement for Surfaces:? ? ? ? ? ? Yes
? Device has ECC support:? ? ? ? ? ? ? ? ? ? ? ? Disabled
? Device supports Unified Addressing (UVA):? ? ? Yes
? Device supports Compute Preemption:? ? ? ? ? ? No
? Supports Cooperative Kernel Launch:? ? ? ? ? ? No
? Supports MultiDevice Co-op Kernel Launch:? ? ? No
? Device PCI Domain ID / Bus ID / location ID:? 0 / 1 / 0