GithubHelp home page GithubHelp logo

weifengliu-ssslab / benchmark_spgemm_using_csr Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 8.0 2.76 MB

CSR-based SpGEMM on nVidia and AMD GPUs

License: MIT License

C++ 70.70% Cuda 2.42% C 26.68% Makefile 0.19%

benchmark_spgemm_using_csr's People

Contributors

weifengliu-ssslab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

benchmark_spgemm_using_csr's Issues

successfully compile bhSPARSE on Ubuntu 18.04 with CUDA 10.2 and gcc 8.4.0

Hi everyone, here below is how I use CUSP when compile bhSPARSE. One can use it as a reference when errors are encountered.
Test environment:
Ubuntu 18.04, CUDA 10.2, gcc 8.4.0, CUSP 0.5.0, Thrust 1.13.0 (i.e HPC SDK 21.7).

(1) modify the makefile in SpGEMM_CUDA and include the cusp and thrust folder path.

(2) when compiling spgemm, one might meet the following errors:
(a) cannot find csr.h.
search csr.h path in the cusp folder and replace the path with the newly found one.
(b) cannot find launch_calculator.h.
search launch_calculator.h path in the thrust folder and replace the path with the newly found one.
(c) the function __thrust_compiler_fence() in cusp/system/cuda/detail/runtime_introspection.inl is undefined.
search the function __thrust_compiler_fence() on the thrust mainpage on Github and one will find the __thrust_compiler_fence() is defined in thrust/detail/config/compiler_fence.h. Hence include this file in the runtime_introspection.inl.
(d) enable_if is ambiguous.
one can find the solution in cusplibrary/cusplibrary#101 (comment).

Good luck.

Reference/csr.h does not exist anymore.

nvcc -O3 -m64 -gencode=arch=compute_70,code=sm_70 main.cu -o spgemm -I/usr/local/cuda/include -I/usr/local/cuda/samples/common/inc -L/usr/local/cuda/lib64 -lcudart
In file included from main.cu:19:0:
ref_spgemm.h:17:44: fatal error: cusp/detail/host/reference/csr.h: No such file or directory
compilation terminated.
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 1

Error while running SpGEMM

./spgemm -cuda -spgemm cage4.mtx

A: cage4.mtx
B: cage4.mtx
A: ( 9 by 9, nnz = 49 )
B: ( 9 by 9, nnz = 49 )
Device [0] GeForce GTX TITAN @ 875.5MHz. 14 SMXs.
err = invalid device function
warmup error = -1

Found an err, code = -1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.