weifengliu-ssslab / Benchmark_SpMV_using_CSR5

CSR5-based SpMV on CPUs, GPUs and Xeon Phi
MIT License
95 stars 32 forks source link

No instance of overloaded function "atomicAdd" #9

Open TomasOberhuber opened 3 years ago

TomasOberhuber commented 3 years ago

Dear developers,

I am having problems with building CUDA CSR5 benchmark in CSR5_cuda subfolder. There seems to be a problem with atomicAdd for double on architecture 5.2.

nvcc -O3  -w -m64 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_52,code=compute_52 main.cu -o spmv -I/usr/local/cuda-6.5/include -I/home/oberhuber/NVIDIA_CUDA-10.1_Samples/common/inc -L/usr/local/cuda-6.5/lib64 -lcudart -D VALUE_TYPE=double -D NUM_RUN=1000
detail/cuda/csr5_spmv_cuda.h(352): error: no instance of overloaded function "atomicAdd" matches the argument list
            argument types are: (double *, double)
          detected during:
            instantiation of "void spmv_csr5_calibrate_kernel(const uiT *, const vT *, vT *, iT) [with iT=int, uiT=unsigned int, vT=double]" 

Best regards, Tomas.

VeritasFutureKF commented 1 year ago

do you solve the problem? I met the same erroe.