This patch adds the documentation for the standard algorithm offload feature being proposed here: https://discourse.llvm.org/t/rfc-adding-c-parallel-algorithm-offload-support-to-clang-llvm/72159/1. It is the parent of a series of patches that make up the implementation.
Diff Detail
Event Timeline
Interesting.
clang/docs/StdParSupport.rst | ||
---|---|---|
349 ↗ | (On Diff #542271) | |
354 ↗ | (On Diff #542271) | |
360–362 ↗ | (On Diff #542271) | |
366–367 ↗ | (On Diff #542271) | Another way could be to hide somehow a way to select the device in the policy like in https://github.com/KhronosGroup/SyclParallelSTL, which might be something included in your point "4." of "Open Questions / Future Developments". |
clang/docs/StdParSupport.rst | ||
---|---|---|
366–367 ↗ | (On Diff #542271) | In hindsight, this was needlessly confusing and relied on an implementation detail, therefore the reference was removed. Thank you for pointing that out. |
Updating this to reflect the outcome of the RFC, which is that this shall be a HIP only extension. As such, documentation lives within the HIP Support master document; the other patches in the series will be updated accordingly.
clang/docs/HIPSupport.rst | ||
---|---|---|
216 | Since this does not sounds like an official wording and this is not a recommended practice https://isocpp.org/wiki/faq/coding-standards#using-namespace-std, I suggest just adding std:: everywhere since this is an end-user document. |
clang/docs/HIPSupport.rst | ||
---|---|---|
216 | Addressed, thanks! |
clang/docs/HIPSupport.rst | ||
---|---|---|
266 | Newer long options that don't use the common prefix like -f are preferred to only support --foo, not -foo. |
clang/docs/HIPSupport.rst | ||
---|---|---|
266 | Thanks for the review - to answer the question, it was only done for (apparent) symmetry, there's no strong incentive to have the single dash flavour; I will update both this and the driver patch to retain only the double dash flavours. |
Since this does not sounds like an official wording and this is not a recommended practice https://isocpp.org/wiki/faq/coding-standards#using-namespace-std, I suggest just adding std:: everywhere since this is an end-user document.
Further more it makes clear that your extension can work with the standard library instead of something that would be declared in a namespace from your extension.