You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
json_printer.cu changed to use write-out buffer of 4KB (#259)
* json_printer.cu changed to use write-out buffer of 4KB
The json_printer::do_process_bulk_data_float64 used to write
out one float32 value at a time. This PR introduces a buffer of 4KB
that is being filled with values until full, and then written out.
The 4KB value aligns with system memory page size and seems
appropriate for relatively small datasizes of duration measurements.
* Add explicit static cast from std::size_t to std::streamsize
The explcit cast avoids narrowing error.
* Factor out writing array out to binary file into standalone function
This function is templated based on buffer-size. The function can be
reused to also write-out frequence samples in the future.
0 commit comments