Skip to content
Snippets Groups Projects
Commit 5a709599 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Skip tests involving modf,frexp on pocl

parent fecd2be1
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,10 @@ def test_modf(ctx_factory):
context = ctx_factory()
queue = cl.CommandQueue(context)
if context.devices[0].platform.name == "Portable Computing Language":
# https://github.com/pocl/pocl/issues/198
pytest.skip("POCL doesn't seem to have modf")
for s in sizes:
a = cl_array.arange(queue, s, dtype=np.float32)/10
fracpart, intpart = clmath.modf(a)
......@@ -223,6 +227,10 @@ def test_frexp(ctx_factory):
context = ctx_factory()
queue = cl.CommandQueue(context)
if context.devices[0].platform.name == "Portable Computing Language":
# https://github.com/pocl/pocl/issues/198
pytest.skip("POCL doesn't seem to have frexp")
for s in sizes:
a = cl_array.arange(queue, s, dtype=np.float32)/10
significands, exponents = clmath.frexp(a)
......@@ -252,6 +260,10 @@ def test_bessel(ctx_factory):
from pytest import skip
skip("no double precision support--cannot test bessel function")
if ctx.devices[0].platform.name == "Portable Computing Language":
# https://github.com/pocl/pocl/issues/198
pytest.skip("POCL doesn't seem to have frexp")
nterms = 30
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment