提交 9adb3026 authored 作者: Frederic's avatar Frederic

Skip GpuElemwise tests with the c linker on the opencl back-end.

上级 7865102b
...@@ -32,6 +32,18 @@ class test_gpu_Broadcast(test_Broadcast): ...@@ -32,6 +32,18 @@ class test_gpu_Broadcast(test_Broadcast):
def rand_cval(self, shp): def rand_cval(self, shp):
return rand_gpuarray(*shp, **dict(cls=gpuarray)) return rand_gpuarray(*shp, **dict(cls=gpuarray))
def test_c(self):
dev = theano.sandbox.gpuarray.init_dev.device
if not dev.startswith('cuda'):
raise SkipTest("Cuda specific tests")
super(test_gpu_Broadcast, self).test_c()
def test_c_inplace(self):
dev = theano.sandbox.gpuarray.init_dev.device
if not dev.startswith('cuda'):
raise SkipTest("Cuda specific tests")
super(test_gpu_Broadcast, self).test_c_inplace()
class test_GpuDimShuffle(test_DimShuffle): class test_GpuDimShuffle(test_DimShuffle):
op = GpuDimShuffle op = GpuDimShuffle
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论