make use of pinned cuda allocation to speed things up.