write to files in cuda Is it possible to write to files from the kernel???
I am a newbie to cuda . I am trying to write a program which processes a 51*512 matrix a large number of times , say , 20, 000 times . I want to store the intermediate results to a file say , after each 250 iterations .
For this , do I have to invoke the kernel from the host and return the result each time ?? Unfortunately , it is consuming too much time . Is there any other way to write the results to a file from the kernel itself instead of passing it to host every time ??
Many Thanks!!
I am a newbie to cuda . I am trying to write a program which processes a 51*512 matrix a large number of times , say , 20, 000 times . I want to store the intermediate results to a file say , after each 250 iterations .

For this , do I have to invoke the kernel from the host and return the result each time ?? Unfortunately , it is consuming too much time . Is there any other way to write the results to a file from the kernel itself instead of passing it to host every time ??

Many Thanks!!

#1
Posted 07/22/2010 06:37 PM   
the graphics card has no concept of "file", so yes you have to return the stuff to the host and then do whatever the hell you want with it
btw, what does this have to do with 3d vision ?
the graphics card has no concept of "file", so yes you have to return the stuff to the host and then do whatever the hell you want with it

btw, what does this have to do with 3d vision ?

#2
Posted 07/22/2010 06:40 PM   
Sorry , I don't have a pretty well understanding of graphics cards .Thank you for your reply.
My program is not for 3D visualization . I just wanted to check whether such masive calculations with arrays get faster using cuda and to what extent .
Sorry , I don't have a pretty well understanding of graphics cards .Thank you for your reply.

My program is not for 3D visualization . I just wanted to check whether such masive calculations with arrays get faster using cuda and to what extent .

#3
Posted 07/23/2010 05:53 AM   
Scroll To Top