Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make failed with cuda #87

Open
mdbuaa opened this issue Feb 28, 2020 · 0 comments
Open

Make failed with cuda #87

mdbuaa opened this issue Feb 28, 2020 · 0 comments

Comments

@mdbuaa
Copy link

mdbuaa commented Feb 28, 2020

Hi, I try to make the library with --with-cuda option, but the make failed as follows:
`spctr_offload.cxx(77): error: no instance of overloaded function "CTF_int::spctr::est_time_rec" matches the argument list
argument types are: (int, double, double, double)
object type is: CTF_int::spctr
return rec_ctr->est_time_rec(nlyr, nnz_frac_A, nnz_frac_B, nnz_frac_C) + est_time_fp(nlyr, nnz_frac_A, nnz_frac_B, nnz_frac_C);
^
spctr_tsr.h(47): note: this candidate was rejected because mismatch in count of arguments
double est_time_rec(int nlyr){ return est_time_rec(nlyr, 1, 1, 1, 1.0, 1.0, 1.0); }
^
spctr_tsr.h(46): note: this candidate was rejected because mismatch in count of arguments
virtual double est_time_rec(int nlyr, int nblk_A, int nblk_B, int nblk_C, double nnz_frac_A, double nnz_frac_B, double nnz_frac_C){ return 0.0; }
^

spctr_offload.cxx(80): error: declaration is incompatible with "int64_t={long} CTF_int::spctr_offload::spmem_fp()" (declared at line 45 of "spctr_offload.h")
int64_t spctr_offload::spmem_fp(double nnz_frac_A, double nnz_frac_B, double nnz_frac_C){
^

spctr_offload.cxx(85): error #140: too many arguments in function call
return rec_ctr->mem_rec(nnz_frac_A, nnz_frac_B, nnz_frac_C) + spmem_fp(nnz_frac_A, nnz_frac_B, nnz_frac_C);
^

spctr_offload.cxx(85): error #140: too many arguments in function call
return rec_ctr->mem_rec(nnz_frac_A, nnz_frac_B, nnz_frac_C) + spmem_fp(nnz_frac_A, nnz_frac_B, nnz_frac_C);`
The compiler is intel 2019, with mkl and cuda 10.0. The system is CentOS 7. Thank you very much for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant