Implement buildGPUKernel and buildScop.