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

Fix Bessel include. Don't flood terminal in case of scan error.

parent 3fcd4b02
No related branches found
No related tags found
No related merge requests found
...@@ -649,7 +649,7 @@ def get_bessel_jn_kernel(context): ...@@ -649,7 +649,7 @@ def get_bessel_jn_kernel(context):
"z[i] = bessel_jn(ord_n, x[i])", "z[i] = bessel_jn(ord_n, x[i])",
name="bessel_jn_kernel", name="bessel_jn_kernel",
preamble=""" preamble="""
#include <pyopencl-bessel-j.h> #include <pyopencl-bessel-j.cl>
""") """)
......
#! /usr/bin/env python #! /usr/bin/env python
import numpy as np import numpy as np
import numpy.linalg as la import numpy.linalg as la
import sys import sys
...@@ -734,7 +735,7 @@ def test_scan(ctx_factory): ...@@ -734,7 +735,7 @@ def test_scan(ctx_factory):
desired_result -= host_data desired_result -= host_data
is_ok = (dev_data.get() == desired_result).all() is_ok = (dev_data.get() == desired_result).all()
if not is_ok: if 0 and not is_ok:
print(summarize_error(dev_data.get(), desired_result, host_data)) print(summarize_error(dev_data.get(), desired_result, host_data))
assert is_ok assert is_ok
......
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