Reputation: 1650
I need to gather some performance data on some GPU renders in Blender, some of these are very short, like under 5 seconds. I currently run the render via my benchmarking script like so:
render_command_to_run = '{} {} --background --python {} -- --number {} --save {}'.format(
render_executable, file_to_render, massager_script, num_spheres, new_filename_full_path)
Which basically launches Blender in headless mode to run a render. In order to gather some performance data, I'm using nvidia-smi
in another terminal like so:
nvidia-smi --query-gpu=memory.used --format=csv -l 1
and gathering what I need that way, but I would ideally like to have this run as a python subprocess while the other is running so that I can parse the output as needed. How can I do that?
Upvotes: 1
Views: 32