I’ve run into a compiler error and I am stymied… (I think I might have more luck programming in Mayan… :) )
I’ve declared pointers:
cudaMalloc ((void **)&Res, 2*NN * sizeof(Res));
cublasAlloc (IcLc, sizeof(float), (void**)&gg);
and then, after hopefully filling Res with data, I am trying to copy Res to gg:
I get two compiler errors from this line:
"… argument of type “float *” is incompatible with parameter of type “const cudaArray *” "
However, just above I have with similarly declared variables, e.g,:
cudaMemcpy (Arg, VAR, NN * sizeof(VAR), cudaMemcpyHostToDevice);
which the compiler admires.
Can someone please suggest the incantation to fix the cudaMemcpy2DArrayToArray call? I suspect this may be a simple C question; I am a Fortran man in a C world, sigh…
Thx so much,