Programming Video Cards for Database Applications