folding in cuda files