This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Allow multiple comma separated arguments to `--offload-arch=`
ClosedPublic

Authored by jhuber6 on Jun 20 2022, 7:24 AM.

Details

Summary

This patch updates the --[no-]offload-arch command line arguments to
allow the user to pass in many architectures in a single argument rather
than specifying it multiple times. This means that the following command
line,

clang foo.cu --offload-arch=sm_70 --offload-arch=sm_80

can become:

clang foo.cu --offload-arch=sm_70,sm_80

Diff Detail

Event Timeline

jhuber6 created this revision.Jun 20 2022, 7:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2022, 7:24 AM
jhuber6 requested review of this revision.Jun 20 2022, 7:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2022, 7:24 AM
ye-luo accepted this revision.Jun 20 2022, 7:28 AM

LGTM. This allows me to write concise compile lines.

This revision is now accepted and ready to land.Jun 20 2022, 7:28 AM
This revision was landed with ongoing or failed builds.Jun 22 2022, 6:25 AM
This revision was automatically updated to reflect the committed changes.