Don't try to use opt when cuda is not available.