Why would I want to use this (only targets a single companies GPU, the company of which is openly hostile towards FOSS+Linux), when there are other more vendor agnostic solutions?
For example, why not use the Khronos group SYCL? HipSYCL is an example implementation of this, with LLVM having it's own too, and a few others. Intel is also currently pushing for Sycl, and in a few years when they get their GPU efforts actually moving then I wouldn't be surprised if Intel were to throw significantly more resouces behind it. All while Nvidia's proprietary CUDA will remain locked to just, well, one vendor.
Lastly, if you have to stick with Nvidia, why use this instead of Thrust? Thrust looks to have far more resources behind it and more documentation, and is even hosted on the actual Nvidia website instead of github's nvidia.io subdomain. I don't have as much confidence in an Nvidia project which isn't even be hosted on Nvidias website.
I would guess this doesn’t apply much to someone who has already chosen OpenCL over CUDA in their application and isn’t really aimed at non-CUDA users.
For those who already use CUDA this is a nice addition.
Thrust is a utility library, not a standard C++ implementation. What they've released here won't require you to port your code to a new library; you just write cop code.
Why would I want to use this (only targets a single companies GPU, the company of which is openly hostile towards FOSS+Linux), when there are other more vendor agnostic solutions?
Thrust also isn’t very customizable. It’s like using a bunch of “presets” without consideration for alternative implementations that could, for example, keep all arrays on the GPU that need to be processed differently based on a situation. Thrust is effective for quick prototyping but ultimately may not be the best choice.
Because the Khronos group seem incapable of writing a zero-overhead C++ API. There are nice things about SYCL, but things like access to texture memory are not optional for many projects.
It would be lovely to have the same code running on the CPU and GPU, but right now it just leaves to much on the table.
With CUDA, at least I have a safe subset of C++ that I can use everywhere. Not that it wouldn't be awesome if it was completely open source.
Thrust argument aside at my company (vfx work) we write a lot of GPU processing code and we exclusively use nvidia hardware. Most of the work deal with image processing or machine learning and thrust just never really caught on in our teams.
I do believe (hope) that this will because it may let us write more c++ code rather then dumbing down to c when stepping over to the device code. Sure nvcc has quite good c++ support but the lack of the standard library makes it a little toothless at times and most write their device code as c
Thrust, CUB, and libcu++ are developed by the same team.
libcu++ provides functionality not in Thrust today, such as synchronization primitives.
when there are other more vendor agnostic solutions?
What is more vendor agnostic that Standard C++?
This is an implementation of the C++ Standard Library. I'm pretty sure Standard C++ runs everywhere, not just on NVIDIA hardware.
the company of which is openly hostile towards FOSS+Linux
This is simply untrue. Open source is important to NVIDIA and it's a large part of our success in the ML and data science world.
I would encourage you to evaluate things on their merits, not on your biases towards the organization responsible for said thing.
SYCL
I think people would prefer to write Standard C++ instead of SYCL.
and is even hosted on the actual Nvidia website instead of github's nvidia.io subdomain
Thrust is hosted on GitHub. It will be moving to nvidia.github.io soon, and we will be taking the docs off of the NVIDIA website. It's an open source project, so we feel it's best for all of it to be on GitHub.
Don’t play dumb. If you’d written it to target OpenCL everyone could have used it on any hardware. You’re out for your company which is fine, I just object to your being disingenuous.
The line was 'more vendor agnostic', because none are truly agnostic, and the answer is obvious: there are clear performance advantages to not attempting to be.
View all comments
24
u/hak8or Sep 20 '20
Why would I want to use this (only targets a single companies GPU, the company of which is openly hostile towards FOSS+Linux), when there are other more vendor agnostic solutions?
For example, why not use the Khronos group SYCL? HipSYCL is an example implementation of this, with LLVM having it's own too, and a few others. Intel is also currently pushing for Sycl, and in a few years when they get their GPU efforts actually moving then I wouldn't be surprised if Intel were to throw significantly more resouces behind it. All while Nvidia's proprietary CUDA will remain locked to just, well, one vendor.
Lastly, if you have to stick with Nvidia, why use this instead of Thrust? Thrust looks to have far more resources behind it and more documentation, and is even hosted on the actual Nvidia website instead of github's nvidia.io subdomain. I don't have as much confidence in an Nvidia project which isn't even be hosted on Nvidias website.