Assert --optimize
not used with cuda device
#8569
Merged
--optimize
not used with cuda device
#8569