cublasSetMatrix vs. cudaMemcpy

Hi,

I try to replace a cublasSetMatrix() command with a cudaMemcpy() or cudaMemcpy2D() command. Nothing worked :-(
Can anyone help me?

here is a example:

cublasSetMatrix(offset - z * R_iteration, cols, sizeof(float), Data, z * R_iteration, lda, d_Data, ldb);
|
|
|-> cudaMemcpy2D(?,?,…)

thanks in advance,

K.

Hi,

I try to replace a cublasSetMatrix() command with a cudaMemcpy() or cudaMemcpy2D() command. Nothing worked :-(
Can anyone help me?

here is a example:

cublasSetMatrix(offset - z * R_iteration, cols, sizeof(float), Data, z * R_iteration, lda, d_Data, ldb);
|
|
|-> cudaMemcpy2D(?,?,…)

thanks in advance,

K.