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

NVML: Add support for clock queries. #2194

Merged
merged 3 commits into from
Dec 11, 2023
Merged

NVML: Add support for clock queries. #2194

merged 3 commits into from
Dec 11, 2023

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Dec 8, 2023

julia> NVML.clock_event_reasons(dev)
(idle = false, display_setting = false, hw_power_brake = false, sw_power_cap = false, application_setting = false, hw_slow = false, sync_boost = false, sw_thermal = false, hw_thermal = false)

julia> NVML.clock_info(dev)
(sm = 915, graphics = 915, memory = 5000, video = 1500)

Can be useful to ensure the GPU isn't throttled while benchmarking. Couldn't trigger that locally though.

@Zentrik
Copy link
Contributor

Zentrik commented Dec 8, 2023

I've often seen my gpu (gtx 1070) throttle during benchmarking on Windows 10. Not sure I ever figured out what the problem was (interestingly you could workaround this by playing a video at the same time) but I just switched to Linux.

@maleadt
Copy link
Member Author

maleadt commented Dec 11, 2023

Ah, I couldn't notice anything because I had locked clocks (using nvidia-smi). After a reboot I can see the idle event:

julia> NVML.clock_event_reasons(dev)
(idle = true, display_setting = false, hw_power_brake = false, sw_power_cap = false, application_setting = false, hw_slow = false, sync_boost = false, sw_thermal = false, hw_thermal = false)

Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (a63e062) 72.72% compared to head (0a80269) 72.85%.
Report is 1 commits behind head on master.

Files Patch % Lines
lib/nvml/device.jl 98.79% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2194      +/-   ##
==========================================
+ Coverage   72.72%   72.85%   +0.12%     
==========================================
  Files         159      159              
  Lines       14556    14623      +67     
==========================================
+ Hits        10586    10653      +67     
  Misses       3970     3970              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maleadt maleadt merged commit c92bb31 into master Dec 11, 2023
1 check passed
@maleadt maleadt deleted the tb/nvml_clocks branch December 11, 2023 11:21
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 this pull request may close these issues.

2 participants