diff --git a/taichi/extension.cpp b/taichi/extension.cpp index f4f873c38fe52f..c0a948c6fc80ab 100644 --- a/taichi/extension.cpp +++ b/taichi/extension.cpp @@ -11,6 +11,7 @@ bool is_supported(Arch arch, Extension ext) { {Arch::arm64, {Extension::sparse, Extension::data64}}, {Arch::cuda, {Extension::sparse, Extension::data64}}, {Arch::metal, {}}, + {Arch::opengl, {}}, }; const auto &exts = arch2ext[arch]; return exts.find(ext) != exts.end(); diff --git a/tests/python/test_unary_ops.py b/tests/python/test_unary_ops.py index eeca0d09e104a3..63f2732ec28c1f 100644 --- a/tests/python/test_unary_ops.py +++ b/tests/python/test_unary_ops.py @@ -22,7 +22,7 @@ def fill(): if dt == ti.f64: assert abs(np_op(float(f(i))) - val[i]) < 1e-15 else: - assert abs(np_op(float(f(i))) - val[i]) < 1e-6 + assert abs(np_op(float(f(i))) - val[i]) < 1e-6 if ti.cfg.arch != ti.opengl else 1e-4 # TODO(archibate): use highp float in GLSL def test_f64_trig():