jlebar added a comment. > Well, the thing is, we don't call HostTarget->setCPU() before this function. We just call AllocateTarget(), and it does not set the CPU. Ah, got it. LGTM for the nvptx changes. https://reviews.llvm.org/D29542