-
Notifications
You must be signed in to change notification settings - Fork 0
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
pkg/nvml/types_gen.go:9:10: undefined: _Ctype_struct_nvmlDevice_st #30
Comments
@wade-liwei hey Wade 👋 sadly, I had to limit NVIDIA support to linux only in resbeat as nvml doesn't support any other OS (maybe windows, but it was not in the scope of this project). So I had to add a dummy struct for non-linux platforms:
..and scope nvml usage to linux only:
|
Could you please provide instructions on how to make a Docker image with your project? |
@wade-liwei do you want to use it as it was intended e.g.
and then make sure the resbeat is started in the image entrypoint. You can also built a dedicated resbeat image, but on its own it's not that useful as there is nothing else that would utilize resources that resbeat can measure for you. |
got it, |
@wade-liwei yeah, it should work in alpine-based images 👀 |
Thank you, good man. |
hey man On the 3080 machine, I run the command "make image-build", work ok.
|
I read your build.Dockerfile file, in the file, you just copy go code into the docker image. |
@wade-liwei sorry about delay, Wade 🙏 https://github.com/roma-glushko/resbeat/blob/main/Makefile#L35-L40 - https://github.com/roma-glushko/resbeat/blob/main/build.Dockerfile#L5 |
How do you resolve the problem?
I saw you have the problem too.
NVIDIA/go-nvml#49
The text was updated successfully, but these errors were encountered: