문제

For instance, cublas<t>geam() will do:

C = αop(A) + βop(B)

But what if I want to store the result in A anyway? Can I call it with pointers *C = *A so that:

A = αop(A) + βop(B)

without fear that I may be writing output to a matrix still being read as an input??

If so, are guaranteed that we do this with all other CUBLAS matrix operations safely?

도움이 되었습니까?

해결책

The answer is alright in the cublas documentation, as you posted it - cublasgeam() - If C overlaps A or B, then behaviour is undefined. Nvidia won't guarantee that this will work, if C == A.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top