Unified host and device code for BFSJob.