- cat > txt << _END_
- ABCDEFGHI
- IJKLMNOP
- QRSTUVWX
- _END_
以上每打完一行就要按Enter,如果在某一行內打錯字是可以用backspace的,最後的_END_代表的看到某一行是_END_時候,這個檔案就編輯完成可以寫入一個名叫做txt的文件。內容就會是上面指令藍色的部分:
- cat txt
ABCDEFGHI
IJKLMNOP
QRSTUVWX
NOTE: Error occurred during GPU detection:
CUDA driver version is insufficient for CUDA runtime version
用/usr/local/cuda/samples/1_Utilities/deviceQuery測./deviceQuery出現Can not use GPU acceleration, will fall back to CPU kernels.
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
原本以為是CUDA driver與CUDA runtime version(也就是CUDA toolkit version)搭配不起來(搭配的列表看這裡),測試的指令如下:cudaGetDeviceCount returned 35 -> CUDA driver version is insufficient for CUDA runtime version Result = FAIL