雙顯卡筆記本Ubuntu18.04LTS 安裝tensorflow-gpu版本(Nvidia驅(qū)動(dòng)396版本下載地址、CUDA、cuDNN注意)-2018-09-06

過(guò)程: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上來(lái)(小心!Ubuntu1804默認(rèn)沒(méi)有開SSH),卸載驅(qū)動(dòng),重新裝。

3. 后面就是裝CUDA,cuDNN,沒(méi)什么特別的。

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容