brucefan1983 / GPUMD

Graphics Processing Units Molecular Dynamics
https://gpumd.org/dev
GNU General Public License v3.0
466 stars 116 forks source link

GPUMD output is buffered by 4096 bytes #212

Closed Youjin1985 closed 2 years ago

Youjin1985 commented 2 years ago

Hello, When I run program like gpumd < gpumd_in.txt | tee gpumd.out text appears on screen only when 4096 characters of output was produced. When I do not redirect to file, output appears normally at same time. Please make output unbuffered - described behaviour is not convenient to keep what is going on with calculation.

brucefan1983 commented 2 years ago

Thanks for reporting this. It is expected behavior and I will consider improving it at some point.

brucefan1983 commented 2 years ago

solved in this PR: #219