selectively call cuda.eclass, depending on use flag