• Sam Johnson's avatar
    Bugfix: spaces in temp path prevents cudnn init · bdfaafac
    Sam Johnson 提交于
    When initializing theano with cudnn, _try_compile_tmp is eventually run to verify compiling a test program with gcc. This function requests a temporary path for the test program from tempfile.py. Rarely, tempfile.py can return a path that has spaces in it. If this happens, gcc cannot parse it correctly and throws an error. This change prevents the issue by wrapping the temporary path in quotes.
    
    For an example case: I was running python through an ssh client which accesses the home directory through a symlink in C:\Program Files\openssh\. Tempfile.py defaulted to the working directory and returned the path including the space in "Program Files", which crashed gcc.
    bdfaafac
名称
最后提交
最后更新
..
c_code 正在载入提交数据...
sandbox 正在载入提交数据...
tests 正在载入提交数据...
__init__.py 正在载入提交数据...
callcache.py 正在载入提交数据...
cc.py 正在载入提交数据...
cmodule.py 正在载入提交数据...
compiledir.py 正在载入提交数据...
compilelock.py 正在载入提交数据...
cutils.py 正在载入提交数据...
destroyhandler.py 正在载入提交数据...
fg.py 正在载入提交数据...
graph.py 正在载入提交数据...
lazylinker_c.py 正在载入提交数据...
link.py 正在载入提交数据...
null_type.py 正在载入提交数据...
op.py 正在载入提交数据...
opt.py 正在载入提交数据...
optdb.py 正在载入提交数据...
params_type.py 正在载入提交数据...
sched.py 正在载入提交数据...
toolbox.py 正在载入提交数据...
type.py 正在载入提交数据...
unify.py 正在载入提交数据...
utils.py 正在载入提交数据...
vm.py 正在载入提交数据...