opentuner icon indicating copy to clipboard operation
opentuner copied to clipboard

Problems with tutorial on opentuner.org

Open athas opened this issue 7 years ago • 2 comments

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.

athas avatar Dec 28 '17 10:12 athas

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.

athas avatar Dec 28 '17 13:12 athas

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

jansel avatar Jan 01 '18 19:01 jansel