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 ??
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 ?
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 .
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!!
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!!
btw, what does this have to do with 3d vision ?
btw, what does this have to do with 3d vision ?
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 .
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 .