Thrust VS NCCL

Compare Thrust vs NCCL and see what are their differences.

Thrust

[ARCHIVED] The C++ parallel algorithms library. See https://github.com/NVIDIA/cccl (by NVIDIA)

NCCL

Optimized primitives for collective multi-GPU communication (by NVIDIA)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
Thrust NCCL
4 3
4,839 2,764
- 4.2%
6.9 5.9
about 2 months ago 3 days ago
C++ C++
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Thrust

Posts with mentions or reviews of Thrust. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-17.
  • AMD's CDNA 3 Compute Architecture
    7 projects | news.ycombinator.com | 17 Dec 2023
    this is frankly starting to sound a lot like the ridiculous "blue bubbles" discourse.

    AMD's products have generally failed to catch traction because their implementations are halfassed and buggy and incomplete (despite promising more features, these are often paper features or career-oriented development from now-departed developers). all of the same "developer B" stuff from openGL really applies to openCL as well.

    http://richg42.blogspot.com/2014/05/the-truth-on-opengl-driv...

    AMD has left a trail of abandoned code and disappointed developers in their wake. These two repos are the same thing for AMD's ecosystem and NVIDIA's ecosystem, how do you think the support story compares?

    https://github.com/HSA-Libraries/Bolt

    https://github.com/NVIDIA/thrust

    in the last few years they have (once again) dumped everything and started over, ROCm supported essentially no consumer cards and rotated support rapidly even in the CDNA world. It offers no binary compatibility support story, it has to be compiled for specific chips within a generation, not even just "RDNA3" but "Navi 31 specifically". Etc etc. And nobody with consumer cards could access it until like, six months ago, and that still is only on windows, consumer cards are not even supported on linux (!).

    https://geohot.github.io/blog/jekyll/update/2023/06/07/a-div...

    This is on top of the actual problems that still remain, as geohot found out. Installing ROCm is a several-hour process that will involve debugging the platform just to get it to install, and then you will probably find that the actual code demos segfault when you run them.

    AMD's development processes are not really open, and actual development is silo'd inside the company with quarterly code dumps outside. The current code is not guaranteed to run on the actual driver itself, they do not test it even in the supported configurations.

    it hasn't got traction because it's a low-quality product and nobody can even access it and run it anyway.

  • Parallel Computations in C++: Where Do I Begin?
    3 projects | /r/learnprogramming | 23 Sep 2022
    For a higher level GPU interface, Thrust provides "standard library"-like functions that run in parallel on the GPU (Nvidia only)
  • What are some cool modern libraries you enjoy using?
    32 projects | /r/cpp | 18 Sep 2022
    For GPGPU, I like thrust. C++-idiomatic way of writing CUDA code, passing between host and device, etc.
  • A vision of a multi-threaded Emacs
    7 projects | /r/emacs | 20 May 2022
    Users should work with higher level primitives like tasks, parallel loops, asynchronous functions etc. Think TBB, Thrust, Taskflow, lparallel for CL, etc.

NCCL

Posts with mentions or reviews of NCCL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-06.
  • MPI jobs to test
    2 projects | /r/HPC | 6 Jun 2023
    % rm -rf /tmp/nccl ; git clone --recursive https://github.com/NVIDIA/nccl.git ; cd nccl ; git grep MPI Cloning into 'nccl'... remote: Enumerating objects: 2769, done. remote: Counting objects: 100% (336/336), done. remote: Compressing objects: 100% (140/140), done. remote: Total 2769 (delta 201), reused 287 (delta 196), pack-reused 2433 Receiving objects: 100% (2769/2769), 3.04 MiB | 3.37 MiB/s, done. Resolving deltas: 100% (1820/1820), done. README.md:NCCL (pronounced "Nickel") is a stand-alone library of standard communication routines for GPUs, implementing all-reduce, all-gather, reduce, broadcast, reduce-scatter, as well as any send/receive based communication pattern. It has been optimized to achieve high bandwidth on platforms using PCIe, NVLink, NVswitch, as well as networking using InfiniBand Verbs or TCP/IP sockets. NCCL supports an arbitrary number of GPUs installed in a single node or across multiple nodes, and can be used in either single- or multi-process (e.g., MPI) applications. src/collectives/broadcast.cc:/* Deprecated original "in place" function, similar to MPI */
  • Distributed Training Made Easy with PyTorch-Ignite
    7 projects | dev.to | 10 Aug 2021
    backends from native torch distributed configuration: nccl, gloo, mpi.

What are some alternatives?

When comparing Thrust and NCCL you can also consider the following projects:

gloo - Collective communications library with various primitives for multi-machine training.

CUB - THIS REPOSITORY HAS MOVED TO github.com/nvidia/cub, WHICH IS AUTOMATICALLY MIRRORED HERE.

ArrayFire - ArrayFire: a general purpose GPU library.

Boost.Compute - A C++ GPU Computing Library for OpenCL

C++ Actor Framework - An Open Source Implementation of the Actor Model in C++

HPX - The C++ Standard Library for Parallelism and Concurrency

moodycamel - A fast multi-producer, multi-consumer lock-free concurrent queue for C++11

Taskflow - A General-purpose Parallel and Heterogeneous Task Programming System

moderngpu - Patterns and behaviors for GPU computing

libcds - A C++ library of Concurrent Data Structures

libcudacxx - [ARCHIVED] The C++ Standard Library for your entire system. See https://github.com/NVIDIA/cccl

VexCL - VexCL is a C++ vector expression template library for OpenCL/CUDA/OpenMP