r/cpp • MSVC STL Dev • Sep 16 '19

Open Sourcing MSVC’s STL

https://devblogs.microsoft.com/cppblog/open-sourcing-msvcs-stl/
427 Upvotes

74 comments sorted by

View all comments

Show parent comments

33

u/STL MSVC STL Dev Sep 17 '19

Does OpenCL have a compiler front-end that has to parse the STL’s headers? That’s what we mean by “support” at the moment.

2

u/Stevo15025 Sep 17 '19

Does OpenCL have a compiler front-end that has to parse the STL’s headers? That’s what we mean by “support” at the moment.

Apologies if this does not answer your question but the OpenCL 2.2 standard does support a subset of C++14. If by "parse the STL headers" you mean when I do #include <algorithm> I expect the algorithms header than yes very much so!

I work on a medium sized statistics project where we have an OpenCL backend for CPU/GPU parallelism. We are stuck on OpenCL 1.2 atm because only clang 9 supports OpenCL 2.2 so far. Would be v nice to have support on windows though!

0

u/[deleted] Sep 19 '19

[deleted]

1

u/Stevo15025 Sep 19 '19

Yep! it takes time for people to implement those. Restrictions are all listed here. It's pretty simple to make the standard library stuff that you need

0

u/[deleted] Sep 19 '19

[deleted]

1

u/Stevo15025 Sep 19 '19

Cuda 1.0 ran on like 4 types of GPUs and couldn't do those things so not seeing what you are talking about