Calling CUBLAS geam functions with NPP pointers

I’m trying to extend NPP functionality using CUBLAS, but I can’t get the geam transpose to work with complex types. The following code works fine:

static inline NppStatus cublasTranspose_C1R( const Npp64f* pSrc, int srcStep, Npp64f* pDst, int dstStep, NppiSize roiSize, bool conjugate=true )
{
if( !isValidSize( roiSize ) )
return NPP_SIZE_ERROR;
if( !isValidStep( srcStep, roiSize, sizeof(Npp64f) ) )
return NPP_STEP_ERROR;
if( !isValidStep( dstStep, SizeG( roiSize.width, roiSize.height ), sizeof(Npp64f) ) )
return NPP_STEP_ERROR;
if( !pSrc || !pDst )
return NPP_NULL_POINTER_ERROR;

int srcWidth = srcStep / sizeof(Npp64f);
int dstWidth = dstStep / sizeof(Npp64f);

Npp64f alpha = 1.0, beta = 0.0;	
if( cublasStatus_t cuSts = cublasDgeam( MXThread::GetCublasHandle(), CUBLAS_OP_T, CUBLAS_OP_N, 
		roiSize.height, roiSize.width, &alpha, pSrc, srcWidth, &beta, NULL, srcWidth, pDst, dstWidth ) )
	return NPP_ERROR;
	
return NPP_NO_ERROR;

}

But this literally does nothing:

static inline NppStatus cublasTranspose_C1R( const Npp64fc* pSrc, int srcStep, Npp64fc* pDst, int dstStep, NppiSize roiSize, bool conjugate=true )
{
if( !isValidSize( roiSize ) )
return NPP_SIZE_ERROR;
if( !isValidStep( srcStep, roiSize, sizeof(Npp64fc) ) )
return NPP_STEP_ERROR;
if( !isValidStep( dstStep, SizeG( roiSize.width, roiSize.height ), sizeof(Npp64fc) ) )
return NPP_STEP_ERROR;
if( !pSrc || !pDst )
return NPP_NULL_POINTER_ERROR;

int srcWidth = srcStep / sizeof(Npp64fc);
int dstWidth = dstStep / sizeof(Npp64fc);

cublasOperation_t cublasOp = CUBLAS_OP_T;
if( conjugate )
	cublasOp = CUBLAS_OP_C;

const cuDoubleComplex	*A = (const cuDoubleComplex*)pSrc;
cuDoubleComplex			*C = (cuDoubleComplex*)pSrc;

cuDoubleComplex alpha; alpha.x = 1.0; alpha.y = 0.0; 
cuDoubleComplex beta;  beta.x  = 0.0; beta.y  = 0.0;

if( cublasStatus_t cuSts = cublasZgeam( MXThread::GetCublasHandle(), cublasOp, CUBLAS_OP_N, 
		roiSize.height, roiSize.width, &alpha, A, srcWidth, &beta, NULL, srcWidth, C, dstWidth ) )
{
	return NPP_ERROR;
}
	
return NPP_NO_ERROR;

}

What am I missing?

Never mind! I spotted the error. Comes from working too spending my weekends working on this instead of enjoying the fall colors.