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

Merge branch 'master' into cffi

parents 5cacf0f6 5a709599
Branches cffi
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ def print_info(obj, info_cls):
try:
print("%s: %s" % (info_name, info_value))
except:
print("%s: <error>") % info_name
print("%s: <error>" % info_name)
for platform in cl.get_platforms():
print(75*"=")
......
......@@ -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