weifengliu-ssslab / Benchmark_SpGEMM_using_CSR

CSR-based SpGEMM on nVidia and AMD GPUs
MIT License
45 stars 8 forks source link

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

Open lacrymose opened 3 years ago

lacrymose commented 3 years ago

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 https://github.com/cusplibrary/cusplibrary/issues/101#issue-609927025.

Good luck.

weifengliu-ssslab commented 3 years ago

Many thanks to you for the nice guide!

Cheers,

Weifeng

Weifeng Liu @.***

签名由 网易邮箱大师 定制

On 7/20/2021 @.***> wrote:

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. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.