host: clean code in compute option
issue #229