2015-12-02 18 views
8

Ben Theano nispeten yeni ve benim GPU üzerinde mnist örneği çalıştırmak istiyorum ama şu çıktıyı almak:Theano CUDA istisna

Using gpu device 0: GeForce GTX 970M (CNMeM is disabled) 
Loading data... 
Building model and compiling functions... 
WARNING (theano.gof.compilelock): 
    Overriding existing lock by dead process '9700' (I am process '10632') 

DEBUG: nvcc STDOUT mod.cu 
Creating library 
    C:/Users/user/AppData/Local/Theano 
    /compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-3.4.3-64 
    /tmp55nlvvvo/m25b839e7715203be227800f03e7c8fe8.lib 
and object 
    C:/Users/user/AppData/Local/Theano 
    /compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-3.4.3-64 
    /tmp55nlvvvo/m25b839e7715203be227800f03e7c8fe8.exp 

Bu mnist herhangi çıkışı olmadan DEBUG mesajları çıkışının tutar. Ben nvcc çalışan bir sürümü vardır:

C:\Users\user>nvcc --version 
nvcc: NVIDIA (R) Cuda compiler driver 
Copyright (c) 2005-2015 NVIDIA Corporation 
Built on Tue_Aug_11_14:49:10_CDT_2015 
Cuda compilation tools, release 7.5, V7.5.17 

Ve .theanorc dosyası:

[global] 
floatX = float32 
device = gpu0 

[nvcc] 
fastmath = True 

Bunu nasıl çözebiliriz?

+0

Ayrıca bu sorunla karşılaşıyorum, ancak bu örnek programla değil. Anaconda python 3.4, GeForce GTX970, Windows 10, theano 0.8rc1. Bir çözüm arıyor ... – cb4

cevap

1

Benzer bir sorunum var. Google'da arama yapın ve kodu alın. https://github.com/Theano/Theano/blob/master/theano/sandbox/cuda/nvcc_compiler.py

 p = subprocess.Popen(
       cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 
     nvcc_stdout_raw, nvcc_stderr_raw = p.communicate()[:2] 
     console_encoding = getpreferredencoding() 
     nvcc_stdout = decode_with(nvcc_stdout_raw, console_encoding) 
     nvcc_stderr = decode_with(nvcc_stderr_raw, console_encoding) 

    if nvcc_stdout: 
     # this doesn't happen to my knowledge 
     print("DEBUG: nvcc STDOUT", nvcc_stdout, file=sys.stderr) 

hata çıkışı nvcc görünüyor.

Ama vesilesiyle içinde

, onun çıkış görünüyor

DEBUG

gibi: Bundan sonra nvcc STDOUT mod.cu

Bazen programın çalışması ince: nvcc STDOUT mod.cu

DEBUG bazen işe yaramıyor. Çok garip. Üzgünüz, yorum yapamam, bu yüzden cevabı sadece gönderiyorum.

+0

Sadece entegre grafikleri devre dışı bırakırsam, her şey yolunda gider. İki grafiğiniz varsa, bunu deneyebilirsiniz. –