You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently stuck on trying to get cudaMemcpy2D working. It reports the error cudaErrorInvalidMemcpyDirection when supplying the function with any value from MemcpyKind. I have reinstalled and double checked my CUDA and toolkit installs multiple times and have tested on my own and a colleagues machine, so I'm positive they are fine.
A minimal example that shows the problem I am facing is as follows:
The checkCudaErrors function is the same one used in this repos examples.
The output looks as follows (with filepath removed):
Traceback (most recent call last):
File "test.py", line 27, in <module>
allocate_np_array(arr)
File "test.py", line 13, in allocate_np_array
cuda_check_errors(
File "/.../cuda_utils.py", line 22, in checkCudaErrors
raise RuntimeError("CUDA Error code: {} ({})".format(result[0].value, cuda_get_error_enum(result[0])))
RuntimeError: CUDA Error code: 21 (cudaErrorInvalidMemcpyDirection)
It might be important to note that I am new to CUDA and this is my first real issue post, so don't be afraid to point out my errors in either. Thanks in advance!
The text was updated successfully, but these errors were encountered:
I am currently stuck on trying to get
cudaMemcpy2D
working. It reports the errorcudaErrorInvalidMemcpyDirection
when supplying the function with any value fromMemcpyKind
. I have reinstalled and double checked my CUDA and toolkit installs multiple times and have tested on my own and a colleagues machine, so I'm positive they are fine.A minimal example that shows the problem I am facing is as follows:
The
checkCudaErrors
function is the same one used in this repos examples.The output looks as follows (with filepath removed):
It might be important to note that I am new to CUDA and this is my first real issue post, so don't be afraid to point out my errors in either. Thanks in advance!
The text was updated successfully, but these errors were encountered: