Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GPU measurements to Benchmark Script #8

Closed
fabianlim opened this issue May 16, 2024 · 0 comments · Fixed by #14
Closed

Add GPU measurements to Benchmark Script #8

fabianlim opened this issue May 16, 2024 · 0 comments · Fixed by #14
Assignees

Comments

@fabianlim
Copy link
Contributor

fabianlim commented May 16, 2024

We should include the gpu consumption into FILE_RESULTS

  • new column gpu_mem (this can be in MiB)

The GPU memory can be collected by:

  • starting a async process running nvidia-smi and log to a FILE_MEM
  • perform the subprocess.run
  • read FILE_MEM and process out how much memory was consumed

Points to note:

  • As part of the processing we should perform some estimation based on the gpu memory consumed by the device before the subprocess.run and account for that appropriately.
  • If there are multiple GPUs used how should we report? should it be the average?
  • We use CUDA_VISIBLE_DEVICES as environment to the subprocess, but Im not sure which GPU nvidia-smi will return. The best is to specifiy the device /s ids to nvidia-smi call.
  • we ise nvidia-smi which reports the reserved_memory not the allocated_memory. This needs to be documented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants