rust-ndarray VS Rust-CUDA

Compare rust-ndarray vs Rust-CUDA and see what are their differences.

rust-ndarray

ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations (by rust-ndarray)

Rust-CUDA

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust. (by Rust-GPU)
Our great sponsors
  • JetBrains - Developer Ecosystem Survey 2022
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
rust-ndarray Rust-CUDA
10 19
2,241 1,725
3.1% 5.8%
7.6 9.1
12 days ago 19 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
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.

rust-ndarray

Posts with mentions or reviews of rust-ndarray. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-09.
  • Help slicing 2D array in no_std environment
    1 project | reddit.com/r/learnrust | 9 Jun 2022
    Is the ndarray crate a good fit for this scenario? https://github.com/rust-ndarray/ndarray
  • Rust or C/C++ to learn as a secondary language?
    6 projects | reddit.com/r/Python | 9 Feb 2022
    ndarray and numpy crates provide good way to operate on numpy ndarrays from python
  • Enzyme: Towards state-of-the-art AutoDiff in Rust
    3 projects | reddit.com/r/rust | 12 Dec 2021
    I don't think any of the major ML projects have GPU acceleration because ndarray doesn't support it.
  • Announcing Rust CUDA 0.2
    3 projects | reddit.com/r/rust | 5 Dec 2021
    Not sure about ndarray: https://github.com/rust-ndarray/ndarray/issues/840
  • Signal processing library
    7 projects | reddit.com/r/rust | 6 Nov 2021
    I used basic_dsp a while back and found it lacking. I was hoping to find something that uses the ndarray datatype but i'm not seeing this yet. If you're primarily trying to learn though it might not really matter which library you contribute to. As for myself, I just picked the one that was most used and actively worked on at the time. However I keep an eye out on other libraries; if I see something take off, I might switch over. Either way you'll learn and can point to it as work accomplished.
  • Searching help for Rust Image Manipulation
    2 projects | reddit.com/r/rust | 31 Jul 2021
    Most libraries use either an older C/C++ dynamically or statically. I was looking into maybe rewriting some image manipulation functions in Rust using ndarray (which would then allow for both hardware, gpu and multithreading acceleration), but it would take a very long to get fully into the subject.
  • Dumb question: I want to overload operators like add on structs, what is the name for what I'm trying to do?
    3 projects | reddit.com/r/learnrust | 30 Apr 2021
    The best way would to use a crate for this, such as ndarray, which provides some good ways to do this.
  • Making Maintaining Easier
    5 projects | reddit.com/r/rust | 25 Apr 2021
    First, let me explain a crate, where old dependencies do matter. There is one very handy crate called nshare. It's used for converting images into ndarrays. The libraries between nshare converts are regularly updated, for example to support new formats or to make the usage more convenient. If one writes a new software there could be conflicts in versions of ndarray (for example), so we make sure, that nshare is always up-to-date and works with the newest versions in order to build the best code on it. Another example could be everything cryptographic. If there would be a security issue with ring we really want every dependent to be updated.
  • Linfa has a website now!
    4 projects | reddit.com/r/rust | 8 Mar 2021
    well you can represent categorical values in `ndarray` for sure (even structured arrays [here](https://github.com/rust-ndarray/ndarray/issues/32)), but the memory has to be contiguous for BLAS/LAPACK and therefore it is impossible to mix continuous and categorical values. I was thinking that we could emulate categorical values with a descriptor field for the type of each feature and then just use floats to represent them.
  • ndarray: Apply along axis
    2 projects | reddit.com/r/rust | 6 Mar 2021
    ndarray Readme links to matrix https://github.com/rust-ndarray/ndarray

Rust-CUDA

Posts with mentions or reviews of Rust-CUDA. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-18.
  • Does Rust still depend on LLVM?
    3 projects | reddit.com/r/rust | 18 May 2022
    Kinda - SPIR-V is an intermediate representation that can be consumed by graphics drivers and compiled down by them to the GPU's native code. In that sense it's more similar to emitting LLVM IR than e.g. x86 machine code. Similarly, Rust-CUDA emits NVVM IR, which is a subset of LLVM IR.
  • State of GPGPU in 2022
    4 projects | reddit.com/r/u_KestM | 27 Apr 2022
    Rust-GPU look promising, also Rust-CUDA, also I see OpenCL 3.0 wrapper
  • Silverblue loads nouveau instead of installed nvidia
    3 projects | reddit.com/r/silverblue | 12 Apr 2022
    rpm-ostree install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm sudo rpm-ostree uninstall akmod-nvidia sudo rpm-ostree install akmod-nvidia-470xx rpm-ostree kargs --append=rd.driver.blacklist=nouveau --append=modprobe.blacklist=nouveau --append=nvidia-drm.modeset=1 sudo systemctl reboot sudo rpm-ostree install nvidia-settings-470xx xorg-x11-drv-nvidia-470xx-power sudo rpm-ostree uninstall xorg-x11-drv-nvidia-cuda sudo rpm-ostree install xorg-x11-drv-nvidia-470xx-cuda sudo rpm-ostree install xorg-x11-drv-nvidia-470xx-devel sudo rpm-ostree install xorg-x11-drv-nvidia-470xx-cuda-devel sudo rpm-ostree install cuda-samples sudo rpm-ostree install vulkan-tools vkmark mesa-vulkan-devel sudo rpm-ostree install libshaderc-devel sudo rpm-ostree install clang clang-tools-extra libstdc++-devel sudo rpm-ostree install glib2-devel glib-devel avahi-gobject-devel sudo rpm-ostree install cairo-devel pango-devel gdk-pixbuf2-devel sudo rpm-ostree install graphene-devel gtk4-devel cairo-gobject-devel sudo systemctl reboot modinfo /usr/lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko | grep ^version find /usr/lib/modules -name nvidia.ko -exec modinfo {} \; sudo lspci -v | grep -A 20 VGA git clone https://github.com/Rust-GPU/Rust-CUDA.git git clone https://github.com/vulkano-rs/vulkano.git git clone https://github.com/Relm4/relm4.git glxgears glxinfo glxgears glxinfo vkcube vkcubepp ./teapot ./triangle ./occlusion-query ./interactive_fractal
  • [P] C++ Machine Learning Library Built From Scratch by a 16-Year-Old High Schooler
    3 projects | reddit.com/r/MachineLearning | 12 Feb 2022
  • Writing Vulkan SPIR-V shaders in C++?
    4 projects | reddit.com/r/vulkan | 12 Feb 2022
    Is Rust CUDA, "writing [...] GPU code fully in Rust" (from its "about" description), but still early in development, relevant?
  • Announcing Rust-CUDA 0.3; Hardware raytracing, cuBLAS, cuDNN, atomics, and more
    3 projects | reddit.com/r/rust | 7 Feb 2022
  • Rust and Scientific/High-Performance Computing
    5 projects | reddit.com/r/rust | 6 Feb 2022
    I'm looking for some good sources I can read to see arguments for and against. I'm relatively new to Rust myself, but I am looking at the Rust-CUDA project (and have contacted the developer). I am primarily interested in Rust for this task because of what it offers in terms of memory safety, though I realize that some of the tools/algorithms rely heavily on shared memory between threads. Really, any good reads that you folks could offer would be greatly appreciated.
  • [Media] Follow-up to my previous path tracing in rust post, after a lot of work and trial and error, Rust can now do Hardware Raytracing on the GPU using OptiX, sharing the exact same core rust code with the CPU and GPU renderers.
    1 project | reddit.com/r/rust | 31 Jan 2022
    After nearly a year of work in total, i am happy to announce i was able to bring hardware raytracing to Rust CUDA using the OptiX SDK. OptiX is an SDK based on CUDA which provides fast raytracing pipelines which are hardware-accelerated on Turing and Ampere GPUs. OptiX is half a CPU-side C API, and half a GPU-side C++ library i had to recreate in rust using inline assembly.
  • What's everyone working on this week (4/2022)?
    8 projects | reddit.com/r/rust | 24 Jan 2022
    I finally got rust-cuda to generate optix-compatible code, this is the first picture rendered using hardware raytracing 100% in rust. Rust GPU code and Rust CPU code. I will be making a follow-up to my path tracer in rust post once i make it use OptiX. You can find the (very early) code for this picture here.
  • Rust CUDA and shared memory
    2 projects | reddit.com/r/rust | 31 Dec 2021
    I am not very familiar with GPU programming, but you might get some answers from here https://github.com/Rust-GPU/Rust-CUDA

What are some alternatives?

When comparing rust-ndarray and Rust-CUDA you can also consider the following projects:

nalgebra - Linear algebra library for Rust.

image - Encoding and decoding images in Rust

rust-gpu - 🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧

neuronika - Tensors and dynamic neural networks in pure Rust.

wgpu - Safe and portable GPU abstraction in Rust, implementing WebGPU API.

utah - Dataframe structure and operations in Rust

dasp - The fundamentals for Digital Audio Signal Processing. Formerly `sample`.

linfa - A Rust machine learning framework.

CUDA.jl - CUDA programming in Julia.

fundsp - Audio DSP library featuring an inline graph notation for audio processing

traceroute - Rust traceroute

PySCIPOpt - Python interface for the SCIP Optimization Suite