Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 77dd4ce

Browse files
committed
make OpenCL benchmark run in absence of OpenCL
This may seem a strange thing to do but the numpy-only benchmarks are still useful. The speedup numbers, however, are meaningless.
1 parent 292767e commit 77dd4ce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/benchmark_opencl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def main():
5252
queue = get_default_queue()
5353
print('Using context: {0}'.format(queue.context))
5454
except NoCLPresentError:
55-
print('Skipping benchmark since OpenCL is not present')
56-
return
55+
print('Skipping OpenCL benchmark since OpenCL is not present')
5756

5857
print('Running NumPy colfilter...')
5958
a = benchmark('colfilter(lena, h1o)',

0 commit comments

Comments
 (0)