提交 2d24f329 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Print current device when initializing gpuarray.

上级 19c0dbcb
import sys
import logging
import theano
......@@ -36,6 +37,8 @@ def init_dev(dev):
context = pygpu.init(dev)
pygpu.set_default_context(context)
pygpu_activated = True
if config.print_active_device:
print >> sys.stderr, "Using device %s: %s" % (dev, context.devname)
if pygpu:
try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论