提交 5de2cf2e authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Correctly returns OpenMP status in case of error

上级 6fc6d024
...@@ -769,6 +769,7 @@ class OpenMPOp(Op): ...@@ -769,6 +769,7 @@ class OpenMPOp(Op):
@staticmethod @staticmethod
def test_gxx_support(): def test_gxx_support():
default_openmp = True
try: try:
code = """ code = """
#include <omp.h> #include <omp.h>
...@@ -804,7 +805,7 @@ class OpenMPOp(Op): ...@@ -804,7 +805,7 @@ class OpenMPOp(Op):
os.remove(path) os.remove(path)
except OSError, e: except OSError, e:
return False return False
return True return default_openmp
def make_thunk(self, node, storage_map, compute_map, no_recycling): def make_thunk(self, node, storage_map, compute_map, no_recycling):
op = self op = self
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论