i have a c code that often calls clapack function dgesv_(&nneq, &nrhs, aa, &lda, iwork, f, &lda, &info).
please note that it requires both “f2c.h” and “clapack.h”
I have NO problem for the c code under regular c environment using VS2005.
for my CUDA project, I started from files in C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\template
that is, I have modified template.cu in the directory to have a hybrid code of c and CUDA.
at this stage, the code is not 100% CUDA yet. therefore, part of job is done on CPU (c part) and part of it is done by GPU (CUDA.)
of course, the c routine calling dgesv_ is in c part.
Since I am using the existing CUDA template in the example directory using VS2005, I added the following lines:
template property>>linker>>input>>additional dependencies:
clapack.lib clapackd.lib blas.lib blasd.lib cudart.lib cutil32.lib cublas.lib cutil32D.lib
my question is this.
previously written c code, as I mentioned, has no error…
but with CUDA, I start to get the followings:
error: argument of type “int *” is incompatible with parameter of type :integer *"
and the line locates where I am calling dgesv_ .
i think it is related to the project properties of template in C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\template
but, could not figure out exactly what it is.
any experience on the issue?
please any comments are welcome and THANK YOU in well advance.