opentuner
opentuner copied to clipboard
Problems with tutorial on opentuner.org
I am following the OpenTuner tutorial, and have installed OpenTuner 0.8 via pip. When I try to run the tutorial example, I encounter two errors.
First, the following line fails with the error ImportError: No module named adddeps:
import adddeps # fix sys.path
I fixed this by simply removing the offending line.
Second, the following line fails with TypeError: cannot concatenate 'str' and 'int' objects:
gcc_cmd += '-DBLOCK_SIZE='+ cfg['blockSize']
I fixed this by adding a call to str to convert the integer to a string.
I see that adddeps.py is this file. I don't think the type error is related to me not following the instructions properly, though.
adddeps.py lets you run from a git checkout without doing a pip install opentuner, it is safe to remove, and we should make that more apparent in the tutorial.
The TypeError looks like a bug in the tutorial. Thanks for finding that. If you want to submit improvements to the tutorial the source code for the webpage is here:
https://github.com/jansel/opentuner/tree/gh-pages