This is an archive of the discontinued LLVM Phabricator instance.

[CUDA,Driver] Added --no-cuda-gpu-arch= option.
ClosedPublic

Authored by tra on Dec 9 2016, 1:23 PM.

Details

Summary

This allows us to negate preceding --cuda-gpu-arch=X.
This comes handy when user needs to override default flags set for them by the build system.

Diff Detail

Repository
rL LLVM

Event Timeline

tra updated this revision to Diff 80945.Dec 9 2016, 1:23 PM
tra retitled this revision from to [CUDA,Driver] Added --no-cuda-gpu-arch= option..
tra updated this object.
tra added reviewers: jlebar, echristo.
tra added a subscriber: cfe-commits.
jlebar accepted this revision.Dec 9 2016, 1:41 PM
jlebar edited edge metadata.
jlebar added inline comments.
lib/Driver/Driver.cpp
1952 ↗(On Diff #80945)

Extra linebreak

1960 ↗(On Diff #80945)

We're using std::set, so I don't think this is necessary? You could have a comment on std::set saying that we use it to get a deterministic order, if you want.

test/Driver/cuda-options.cu
154 ↗(On Diff #80945)

Extra linebreak

This revision is now accepted and ready to land.Dec 9 2016, 1:41 PM
tra updated this revision to Diff 80950.Dec 9 2016, 1:48 PM
tra edited edge metadata.

Removed sorting and extraneous empty lines.

This revision was automatically updated to reflect the committed changes.