root@547a227b1517:~/numba-examples# numba_bench -o results -r gpu
Scanning /root/numba-examples for benchmarks
Writing results to /root/numba-examples/results
/usr/local/lib/python3.6/dist-packages/numba_bench-0.1-py3.6.egg/numba_bench/benchmark.py:54: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)
Running Histogram [/root/numba-examples/examples/density_estimation/histogram]
numpy: bins10, float32 - 1000 => 3 reps, 1000 iter per rep, 169.493665 usec per call
numba: bins10, float32 - 1000 => 3 reps, 10000 iter per rep, 15.088746 usec per call
numba_gpu: bins10, float32 - 1000 => 3 reps, 100 iter per rep, 1593.281750 usec per call
numpy: bins10, float32 - 10000 => 3 reps, 1000 iter per rep, 265.618970 usec per call
numba: bins10, float32 - 10000 => 3 reps, 1000 iter per rep, 141.332854 usec per call
numba_gpu: bins10, float32 - 10000 => 3 reps, 100 iter per rep, 1603.700330 usec per call
numpy: bins10, float32 - 100000 => 3 reps, 100 iter per rep, 1179.389010 usec per call
numba: bins10, float32 - 100000 => 3 reps, 100 iter per rep, 1402.002540 usec per call
numba_gpu: bins10, float32 - 100000 => 3 reps, 100 iter per rep, 1681.287160 usec per call
numpy: bins10, float32 - 300000 => 3 reps, 100 iter per rep, 3271.321700 usec per call
numba: bins10, float32 - 300000 => 3 reps, 100 iter per rep, 4213.909610 usec per call
numba_gpu: bins10, float32 - 300000 => 3 reps, 100 iter per rep, 1949.394360 usec per call
numpy: bins10, float32 - 3000000 => 3 reps, 10 iter per rep, 32000.128600 usec per call
numba: bins10, float32 - 3000000 => 3 reps, 10 iter per rep, 42029.814400 usec per call
numba_gpu: bins10, float32 - 3000000 => 3 reps, 100 iter per rep, 4975.962050 usec per call
numpy: bins10, float64 - 1000 => 3 reps, 1000 iter per rep, 160.448296 usec per call
numba: bins10, float64 - 1000 => 3 reps, 10000 iter per rep, 14.967072 usec per call
numba_gpu: bins10, float64 - 1000 => 3 reps, 100 iter per rep, 1591.028610 usec per call
numpy: bins10, float64 - 10000 => 3 reps, 1000 iter per rep, 273.850549 usec per call
numba: bins10, float64 - 10000 => 3 reps, 1000 iter per rep, 137.559821 usec per call
numba_gpu: bins10, float64 - 10000 => 3 reps, 100 iter per rep, 1585.167370 usec per call
numpy: bins10, float64 - 100000 => 3 reps, 100 iter per rep, 1402.316260 usec per call
numba: bins10, float64 - 100000 => 3 reps, 100 iter per rep, 1365.159980 usec per call
numba_gpu: bins10, float64 - 100000 => 3 reps, 100 iter per rep, 1778.616570 usec per call
numpy: bins10, float64 - 300000 => 3 reps, 100 iter per rep, 4086.320090 usec per call
numba: bins10, float64 - 300000 => 3 reps, 100 iter per rep, 4103.344970 usec per call
numba_gpu: bins10, float64 - 300000 => 3 reps, 100 iter per rep, 2086.206040 usec per call
numpy: bins10, float64 - 3000000 => 3 reps, 10 iter per rep, 37877.584500 usec per call
numba: bins10, float64 - 3000000 => 3 reps, 10 iter per rep, 40958.335600 usec per call
numba_gpu: bins10, float64 - 3000000 => 3 reps, 100 iter per rep, 6885.126960 usec per call
numpy: bins1000, float32 - 1000 => 3 reps, 1000 iter per rep, 180.907137 usec per call
numba: bins1000, float32 - 1000 => 3 reps, 10000 iter per rep, 16.114160 usec per call
numba_gpu: bins1000, float32 - 1000 => 3 reps, 100 iter per rep, 1586.353680 usec per call
numpy: bins1000, float32 - 10000 => 3 reps, 1000 iter per rep, 275.862535 usec per call
numba: bins1000, float32 - 10000 => 3 reps, 1000 iter per rep, 142.604908 usec per call
numba_gpu: bins1000, float32 - 10000 => 3 reps, 100 iter per rep, 1589.610960 usec per call
numpy: bins1000, float32 - 100000 => 3 reps, 100 iter per rep, 1223.783610 usec per call
numba: bins1000, float32 - 100000 => 3 reps, 100 iter per rep, 1404.859190 usec per call
numba_gpu: bins1000, float32 - 100000 => 3 reps, 100 iter per rep, 1684.227960 usec per call
numpy: bins1000, float32 - 300000 => 3 reps, 100 iter per rep, 3347.087800 usec per call
numba: bins1000, float32 - 300000Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/numba_bench-0.1-py3.6.egg/numba_bench/benchmark.py", line 184, in _run_and_validate_results
self.validator(input_args, input_kwargs, actual_results)
File "/root/numba-examples/examples/density_estimation/histogram/impl.py", line 73, in validator
np.testing.assert_array_equal(expected_hist, actual_hist)
File "/usr/local/lib/python3.6/dist-packages/numpy/testing/_private/utils.py", line 918, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/usr/local/lib/python3.6/dist-packages/numpy/testing/_private/utils.py", line 841, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
Mismatch: 0.4%
Max absolute difference: 1
Max relative difference: 0.00301205
x: array([ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
y: array([ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/numba_bench", line 4, in <module>
__import__('pkg_resources').run_script('numba-bench==0.1', 'numba_bench')
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 1462, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.6/dist-packages/numba_bench-0.1-py3.6.egg/EGG-INFO/scripts/numba_bench", line 7, in <module>
sys.exit(main(sys.argv))
File "/usr/local/lib/python3.6/dist-packages/numba_bench-0.1-py3.6.egg/numba_bench/main.py", line 62, in main
verify_only=args.verify_only)
File "/usr/local/lib/python3.6/dist-packages/numba_bench-0.1-py3.6.egg/numba_bench/benchmark.py", line 290, in discover_and_run_benchmarks
results = benchmark.run_benchmark(verify_only=verify_only)
File "/usr/local/lib/python3.6/dist-packages/numba_bench-0.1-py3.6.egg/numba_bench/benchmark.py", line 229, in run_benchmark
self._run_and_validate_results(input_dict, impl_dict)
File "/usr/local/lib/python3.6/dist-packages/numba_bench-0.1-py3.6.egg/numba_bench/benchmark.py", line 186, in _run_and_validate_results
self._raise_benchmark_error('Implementation %s failed validation on input %s' % (impl_dict['name'], input_dict['x']))
File "/usr/local/lib/python3.6/dist-packages/numba_bench-0.1-py3.6.egg/numba_bench/benchmark.py", line 59, in _raise_benchmark_error
raise BenchmarkError(self.benchmark_dir, message)
numba_bench.benchmark.BenchmarkError: [/root/numba-examples/examples/density_estimation/histogram]: Implementation numba failed validation on input 300000