This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Adapt tests to make them usable with CUDA-12.x
ClosedPublic

Authored by tra on Jun 5 2023, 2:34 PM.

Details

Summary

CUDA-12 no longer supports 32-bit compilation, and we ned to adjust NVPTX tests to deal with that.
LLVM compilation itself is not affected, but optional ptxas tests no longer work in 32-bit mode.

Tests that were run with -march=nvptx only were switched to use nvptx64 and had the checks adjusted as necessary.
Tests that were targeting both nvptx and nvptx64 now have 32-bit ptxas compilation disabled with cuda-12+.

Diff Detail

Event Timeline

tra created this revision.Jun 5 2023, 2:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2023, 2:34 PM
tra edited the summary of this revision. (Show Details)Jun 5 2023, 2:52 PM
tra updated this revision to Diff 528587.Jun 5 2023, 2:53 PM
tra edited the summary of this revision. (Show Details)

Test fix.

tra published this revision for review.Jun 5 2023, 2:53 PM
tra added a reviewer: jlebar.
jlebar accepted this revision.Jun 5 2023, 4:18 PM
This revision is now accepted and ready to land.Jun 5 2023, 4:18 PM
tra updated this revision to Diff 528966.Jun 6 2023, 11:46 AM

Changed EOL style to unix on few stray tests still using DOS EOL.

This revision was automatically updated to reflect the committed changes.
llvm/test/CodeGen/NVPTX/tex-read.ll