I m new to Cuda and just tryng out a simple program using Cudamemcpy .
I am trying to copy a value from host to the device then from that device to another one and then back to the host
So logically at the end of it my host should contain two identical memory locations
but it doesnt happen in fact the first cudaMemcpy command fails and produces some garbage output
I have compiled using nvcc -g command …
I am zipping the code that i have written and uploading it…
Could anyone please help me out??
datamov.cu.tar.gz (579 Bytes)