1. 程式人生 > >配置Pycharm,解決終端可執行,Pycharm報錯:Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

配置Pycharm,解決終端可執行,Pycharm報錯:Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

錯誤提示如下:

I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:126] Couldn't open CUDA library libcudnn.so.5. LD_LIBRARY_PATH: 
I tensorflow/stream_executor/cuda/cuda_dnn.cc:3517] Unable to load cuDNN DSO
I tensorflow/stream_executor/dso_loader.cc:126] Couldn't open CUDA library libcufft.so.8.0. LD_LIBRARY_PATH: 
I tensorflow/stream_executor/cuda/cuda_fft.cc:344] Unable to load cuFFT DSO.
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

1)配置Pycharm過程:點選 > Run > Edit Configurations ,開啟介面如下:


2)點選要執行的程式,如圖,我的是藍色區域的test(1),手動配置Environment variables,新增LD_LIBRARY_PATH項,即可。具體步驟,點選右邊三點,開啟介面如下

3)再左邊Name賦值為LD_LIBRARY_PATH,

右邊Value賦值為:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:;

4)問題解決,併成功執行:

I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally