wrote cuda