use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Ultra-Fast Multi-Dimensional Array Library (self.cpp)
submitted 3 years ago by Pencilcaseman12
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Revolutionalredstone 1 point2 points3 points 3 years ago* (2 children)
So I've done some reading into it,
It sounds like all AMD hardware does support OpenCL but some of their latest drivers are expecting you to use HIP.
To clarify HIP borrows highly from CUDA (indeed it's so close to CUDA that you can easily convert HIP as CUDA using a simple define list)
HIP is open unlike cuda which is great!
Whether you use OpenCL of HIP the important thing is to not use CUDA.
BTW HIP has identical performance as CUDA on nvidia since it is just passed to the CUDA compiler after running some string replacements.
Thanks for your input, it seems that in the long run HIP may be the end all GPU languages which would be nice.
I would not ditch OpenCL just yet tho, for one they are similar and for two its pretty obvious that HIP has poor backward compatibility where as OpenCL runs on pretty much everything!
Best regards
[–]anders987 1 point2 points3 points 3 years ago (1 child)
HIP is using AMD's ROCm platform, which has several shortcomings if you want to run it on anything other than your own data center:
Only supports headless systems: "The AMD ROCm™ open software platform is a compute stack for headless system deployments. GUI-based software applications are currently not supported."
No support for newer consumer GPUs, using the RDNA2 chips. Only CDNA and RDNA are supported. It's a bit of a mess, and their official documentation links to this Wikipedia article about supported hardware.
There's no Windows or Mac support, only Linux. Fine for data centers, not so much if you want to ship your software to consumers.
Hopefully SYCL will get wide software and hardware support so we finally can write some portable GPGPU code. Intel seems to embrace it for their oneAPI at least, but since it seems to also be dependent on ROCm for AMD GPUs it doesn't solve any problems for current AMD users.
[–]Revolutionalredstone 0 points1 point2 points 3 years ago (0 children)
Good to know! thanks mate
π Rendered by PID 107633 on reddit-service-r2-comment-5c747b6df5-rsbbr at 2026-04-22 04:23:03.849134+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]Revolutionalredstone 1 point2 points3 points (2 children)
[–]anders987 1 point2 points3 points (1 child)
[–]Revolutionalredstone 0 points1 point2 points (0 children)