提交 6b209431 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Add a deprecation message to the old backend.

上级 c0b24762
......@@ -488,6 +488,8 @@ def use(device,
"""
global cuda_enabled, cuda_initialization_error_message
_logger.warn("The cuda backend is deprecated and will be removed in "
"the next release. Please switch to the gpuarray backend.")
if force and not cuda_available and device.startswith('gpu'):
if not nvcc_compiler.is_nvcc_available():
raise EnvironmentError("You forced the use of gpu device '%s', but"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论