This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Fix issues in ptxas integration to LIT tests
ClosedPublic

Authored by asavonic on Jun 15 2022, 8:19 AM.

Details

Summary
  1. Fixed a typo in PTXAS_EXECUTABLE CMake variable (PXTAS -> PTXAS).
  1. Version check was implemented incorrectly, now version (major, minor) is converted to int for comparison.
  1. ptxas -arch argument was missing in 2 tests.

Diff Detail

Event Timeline

asavonic created this revision.Jun 15 2022, 8:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 8:19 AM
asavonic requested review of this revision.Jun 15 2022, 8:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 8:19 AM
tra accepted this revision.Jun 16 2022, 1:17 PM

LGTM in general.

llvm/test/CodeGen/NVPTX/atomicrmw-expand.ll
3–4

Do we have it documented somewhere that detection of ptxas version X.Y, enables ptxas-A.B feature for all A.B <= X.Y?

This revision is now accepted and ready to land.Jun 16 2022, 1:17 PM
This revision was landed with ongoing or failed builds.Oct 3 2022, 2:31 PM
This revision was automatically updated to reflect the committed changes.