if you use cuda, you should inherit the cuda eclass.