Skip to content

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

Description

@lacrymose

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions