A small gadget for automating cuda kernel writing