This sample demonstrates the usage of cusparseSpMM
for performing sparse matrix - dense matrix multiplication, where the sparse matrix is represented in Blocked-ELL format.
C = alpha * A * B + beta * C
-
Command line
nvcc -I<cuda_toolkit_path>/include spmm_blockedell_example.c -o spmm_blockedell_example -lcusparse
-
Linux
make
-
Windows/Linux
mkdir build cd build cmake .. make
On Windows, instead of running the last build step, open the Visual Studio Solution that was created and build.
- Supported SM Architectures: SM 7.0, SM 7.2, SM 7.5, SM 8.0, SM 8.6, SM 8.9, SM 9.0
- Supported OSes: Linux, Windows, QNX, Android
- Supported CPU Architectures: x86_64, arm64
- Supported Compilers: gcc, clang, Intel icc, Microsoft msvc, Nvidia HPC SDK nvc
- Language:
C++03
- CUDA 11.2.1 toolkit (or above) and compatible driver (see CUDA Driver Release Notes).
- CMake 3.9 or above on Windows