diff --git a/examples/dump-properties.py b/examples/dump-properties.py index 7d8a459efa1cf4af7ce4d9873a0eeb0ee71ff24f..e64f66fa25c9d0e47af70f9409b9ddd2b5aa424d 100644 --- a/examples/dump-properties.py +++ b/examples/dump-properties.py @@ -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*"=") diff --git a/test/test_clmath.py b/test/test_clmath.py index 9c322cdf4b6cc8f1d18697da098b841444b48984..8329f40bc5751dc9e5d609903e48c8c70dd46355 100644 --- a/test/test_clmath.py +++ b/test/test_clmath.py @@ -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: