I have a similar problem. Search google and get the code. 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)
Nvcc seems to have an error output.
But in my case, his conclusion looks like
DEBUG: nvcc STDOUT mod.cu
DEBUG: nvcc STDOUT mod.cu
Sometimes the program works fine after that, sometimes it doesn't work. It is very strange. Sorry, I canβt comment, so just send an answer.
Zaks wang
source share