Small cuda framework