Write result into text file in CUDA / Optix -


I wanted to know whether it is possible to write a text file of the variable that was calculated in my program Cuda / Optix. My .cu files are in and therefore can not be written by the CPU.

As far as I know, it is not possible to execute file I / O from the CUDA kernel. Code> cudaMemcpy and copy the data back into the hosting memory, and from there you can type values ​​in a file.

Comments