提交 163d49de authored 作者: Frederic's avatar Frederic

Remove useless line and delete variable not needed anymore.

上级 ee5534cc
...@@ -122,7 +122,6 @@ if compile_cuda_ndarray: ...@@ -122,7 +122,6 @@ if compile_cuda_ndarray:
try: try:
# Retry to load again in case someone else compiled it # Retry to load again in case someone else compiled it
# while we waited for the lock # while we waited for the lock
compile_cuda_ndarray = not try_import()
if not try_import(): if not try_import():
try: try:
if not nvcc_compiler.is_nvcc_available(): if not nvcc_compiler.is_nvcc_available():
...@@ -154,6 +153,7 @@ if compile_cuda_ndarray: ...@@ -154,6 +153,7 @@ if compile_cuda_ndarray:
set_cuda_disabled() set_cuda_disabled()
finally: finally:
release_lock() release_lock()
del compile_cuda_ndarray
if cuda_available: if cuda_available:
# If necessary, # If necessary,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论