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

fix(nvidia): skip clock events NVML check if not supported by old drivers #48

Merged
merged 2 commits into from
Sep 8, 2024

Conversation

gyuho
Copy link
Collaborator

@gyuho gyuho commented Sep 2, 2024

Reported by @cardyok:

image

Not all NVIDIA drivers support this symbol. And if we don't do this, the CGO call just exits the whole process.

(ref. NVIDIA/go-nvml#123)

@gyuho gyuho added the bug bug, needs fix label Sep 2, 2024
@gyuho gyuho self-assigned this Sep 2, 2024
@gyuho gyuho changed the title ![](https://files.slack.com/files-pri/T051CUCCGHZ-F07KA3MA3D4/image.png)fix(acclerator/nvidia): check clock events supported or not fix(acclerator/nvidia): check clock events supported or not Sep 2, 2024
@gyuho gyuho force-pushed the skip-clock-events branch 2 times, most recently from d16ee32 to 629b5a3 Compare September 4, 2024 15:01
@gyuho gyuho changed the title fix(acclerator/nvidia): check clock events supported or not fix(acclerator/nvidia): skip clock events NVML checks if not supported by the driver Sep 4, 2024
@gyuho gyuho changed the title fix(acclerator/nvidia): skip clock events NVML checks if not supported by the driver fix(nvidia): skip clock events NVML check if not supported by the old drivers Sep 4, 2024
@gyuho gyuho changed the title fix(nvidia): skip clock events NVML check if not supported by the old drivers fix(nvidia): skip clock events NVML check if not supported by old drivers Sep 4, 2024
@gyuho gyuho force-pushed the skip-clock-events branch from 5aedc5e to 65e00fd Compare September 5, 2024 13:06
Copy link
Member

@hm2501 hm2501 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one minor comment

// clock events are supported in versions 535 and above
// otherwise, CGO call just exits with
// undefined symbol: nvmlDeviceGetCurrentClocksEventReasons
func ClockEventsSupportedVersion(major, minor, patch int) bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need minor and patch params?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me remove :)

Signed-off-by: Gyuho Lee <[email protected]>
@gyuho gyuho merged commit 7cc685e into main Sep 8, 2024
5 checks passed
@gyuho gyuho deleted the skip-clock-events branch September 8, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug, needs fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants