llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[SYCL][NVPTX] Emit 'grid_constant' annotations for by-val kernel params

Open frasercrmck opened this issue 1 year ago • 1 comments

Also fix up the DeadArgumentElimination passes to correctly preserve the annotations; when removing arguments from functions, dead parameters need pruned and alive ones may need their values shifted down by the number of dead arguments that came before them.

NOTE TO REVIEWERS this PR includes a cherry-pick of a recent upstream commit which has not yet been pulled down. Without it, the NVPTX backend crashes when processing this new type of annotation. If this is merged before this cherry-pick is pulled down, it would be best to leave it unsquashed. Otherwise we can drop it from the PR.

frasercrmck avatar Jun 27 '24 16:06 frasercrmck

NOTE TO REVIEWERS this PR includes a cherry-pick of a recent upstream commit which has not yet been pulled down. Without it, the NVPTX backend crashes when processing this new type of annotation. If this is merged before this cherry-pick is pulled down, it would be best to leave it unsquashed. Otherwise we can drop it from the PR.

The commits will be squashed. If you don't want to wait for a pulldown, I recommend opening a separate PR with cherry-pick only.

bader avatar Jun 27 '24 17:06 bader

NOTE TO REVIEWERS this PR includes a cherry-pick of a recent upstream commit which has not yet been pulled down. Without it, the NVPTX backend crashes when processing this new type of annotation. If this is merged before this cherry-pick is pulled down, it would be best to leave it unsquashed. Otherwise we can drop it from the PR.

The commits will be squashed. If you don't want to wait for a pulldown, I recommend opening a separate PR with cherry-pick only.

Seems like a massive waste of time to work around a bad policy.

ldrumm avatar Jul 01 '24 13:07 ldrumm

Oh, and the cherry picked commit is not by the present author, so unless that author joined this project and created that merge request, the authorship will be incorrect.

I think it's best we maintain correct attribution of copyrights

ldrumm avatar Jul 01 '24 13:07 ldrumm

@premanandrao can you take a look at this? I am off till Wednesday.

elizabethandrews avatar Jul 03 '24 23:07 elizabethandrews

Oh, and the cherry picked commit is not by the present author, so unless that author joined this project and created that merge request, the authorship will be incorrect.

I think it's best we maintain correct attribution of copyrights

Yes it doesn't seem like the current system can correctly support cherry-picks in PRs without manual intervention.

Either way, the commit we depend on has been merged as part of the pulldown, so this PR is unblocked in that regard.

frasercrmck avatar Jul 08 '24 09:07 frasercrmck

@intel/llvm-gatekeepers this looks good to merge, thank you!

frasercrmck avatar Jul 10 '24 08:07 frasercrmck