When using cuda you should also use the cuda.eclass.