Skip to content

Writing a simple userspace program that does something useful with this driver #530

Answered by mtijanic
alexflint asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, sorry, we don't actually have any such documentation to share. It would be nice to have, but it really hasn't been a priority for us.

I can share two toy examples that might get you started though.

  • rmmsg.c lets you configure the log verbosity at runtime, instead of via NVreg_RmMsg as explained in #197
    • This is a super simple client that doesn't care about GPUs at all and is just operating on driver global state.
  • perfboost.c locks your GPU to the P0 pstate.
    • This one operates on the GPU, but has a baked in assumption of only single GPU in the system

Both of them have copies of the param structures which are not ABI stable, but in practice they have not changed over the past few y…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@alexflint
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alexflint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants