Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.61 KB

File metadata and controls

48 lines (34 loc) · 1.61 KB

cuSPARSE Generic APIs - cusparseSpGEMM_reuse

Description

This sample demonstrates the usage of cusparseSpGEMM_reuse for performing sparse matrix - sparse matrix multiplication, where all operands are sparse matrices represented in CSR (Compressed Sparse Row) storage format and the structure of the output matrix can be reused multiple times.

cusparseSpGEMM_reuse Documentation

C = alpha * A * B + beta * C

Building

  • Command line

    nvcc -I<cuda_toolkit_path>/include spgemm_reuse_example.c -o spgemm_reuse_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.

Support

  • Supported SM Architectures: SM 3.5, SM 3.7, SM 5.0, SM 5.2, SM 5.3, SM 6.0, SM 6.1, SM 6.2, 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, ppc64le, arm64
  • Supported Compilers: gcc, clang, Intel icc, IBM xlc, Microsoft msvc, Nvidia HPC SDK nvc
  • Language: C99

Prerequisites