Implement buildGPUKernel.