Skip to content
Snippets Groups Projects
Commit ff91b4d4 authored by James Stevens's avatar James Stevens
Browse files

Merge remote-tracking branch 'upstream/master'

parents dac622f0 1df66adf
No related branches found
No related tags found
No related merge requests found
......@@ -310,13 +310,18 @@ def generate_value_arg_setup(gen, kernel, cl_kernel, impl_arg_info, options):
work_around_arg_count_bug = False
warn_about_arg_count_bug = False
from pyopencl.characterize import has_struct_arg_count_bug
devices = cl_kernel.context.devices
count_bug_per_dev = [
has_struct_arg_count_bug(dev)
for dev in devices]
try:
from pyopencl.characterize import has_struct_arg_count_bug
except ImportError:
count_bug_per_dev = [False]*len(devices)
else:
count_bug_per_dev = [
has_struct_arg_count_bug(dev)
for dev in devices]
if any(count_bug_per_dev):
if all(count_bug_per_dev):
......
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