Hello,

I wanted to write comprehensive unit tests (or examples) for Memcpy3D in
order to illustrate how to use it, but I am struggling with some weird
errors.

The following code
http://pastie.org/598340

On machine #1 (8600GT CUDA 2.3, PyCuda 0.93), gives me:
{'dtoa_height': True, 'depth': 2, 'atoh_height': True, '_assert': True,
'width': 2, 'height': 2}
Exception: <class 'pycuda._driver.LogicError'> cuMemcpy3D failed: invalid
value
{'dtoa_height': False, 'depth': 2, 'atoh_height': False, '_assert': True,
'width': 2, 'height': 2}
Exception: <type 'exceptions.AssertionError'> arr != arr_h_dst
{'dtoa_height': False, 'depth': 4, 'atoh_height': False, '_assert': True,
'width': 2, 'height': 3}
Exception: <type 'exceptions.AssertionError'> arr != arr_h_dst

On machine #2 (GTX 295 CUDA 2.3, PyCuda 0.93) gives me:
{'dtoa_height': True, 'depth': 2, 'atoh_height': True, '_assert': True,
'width': 2, 'height': 2}
Exception: <class 'pycuda._driver.LogicError'> cuMemcpy3D failed: invalid
value
{'dtoa_height': False, 'depth': 2, 'atoh_height': False, '_assert': True,
'width': 2, 'height': 2}
Exception: <type 'exceptions.AssertionError'> arr != arr_h_dst
{'dtoa_height': False, 'depth': 4, 'atoh_height': False, '_assert': True,
'width': 2, 'height': 3}
Exception: <class 'pycuda._driver.LogicError'> cuMemcpy3D failed: invalid
value

Would you mind sending me your output ?

Any idea what's wrong (I tried to follow the C manual) ?

Thanks!

Cheers,

-- 
Nicolas Pinto
Ph.D. Candidate, Brain & Computer Sciences
Massachusetts Institute of Technology, USA
http://web.mit.edu/pinto
_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to