提交 3feae315 authored 作者: Alexander Matyasko's avatar Alexander Matyasko

Skip magma tests if it is not enabled

上级 8a243e89
......@@ -10,7 +10,7 @@ from .test_basic_ops import rand
from numpy.linalg.linalg import LinAlgError
# Skip tests if cuda_ndarray is not available.
from theano import config
from theano.gpuarray.linalg import (cusolver_available, gpu_solve, GpuCholesky,
gpu_matrix_inverse, gpu_svd)
......@@ -199,6 +199,10 @@ class TestGpuCholesky(unittest.TestCase):
class TestMagma(unittest.TestCase):
def setUp(self):
if not config.magma.enabled:
self.skipTest('Magma is not enabled, skipping test')
def test_gpu_matrix_inverse(self):
A = theano.tensor.fmatrix("A")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论