提交 03325e22 authored 作者: Josh Bleecher Snyder's avatar Josh Bleecher Snyder

Removed some unneeded cleanup code left over from previous attempts to fix the…

Removed some unneeded cleanup code left over from previous attempts to fix the segfault-on-exit problem.
上级 4de6e929
import atexit, gc, os, stat
import atexit, os, stat
from theano.compile import optdb
from theano import config
......@@ -96,9 +96,6 @@ if cuda_available:
cuda_initialization_error_message = ""
# actively closing our gpu session presents segfault-on-exit on some systems
atexit.register(gpu_shutdown)
# do garbage collection before releasing the gpu to avoid releasing invalid pointers later
# note that atexit-registered calls are called in LIFO order
atexit.register(gc.collect)
except EnvironmentError, e:
cuda_available = False
cuda_initialization_error_message = e.message
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论