Provides a mechanism to write to a file from a CUDA thread