I’m trying to copy a w component of a float4 into the w component of another float4 through this code:
But I get the error: code=11(cudaErrorInvalidValue)
I’ve checked all values and all are valid and not null.
Can I just check if I understand how cudaMemcpy2DAsync is called and that the way I reference the w components (through the 3*sizeof(float)) and the pitches (float4) for the source and destination are correct?
Thanks in advance