rte_gpu_info(3)

πŸ’– rte_gpu_info(3) β€” the little struct that knows everything about ur GPU πŸ’–

okay bestie, welcome to the Library Functions Manual entry for rte_gpu_info, straight out of DPDK ✨ this is a C struct, not a function (ik, the name is giving function energy, it's not, don't come for me), and it's the place where all ur GPU device info lives. let's get into it 🫢


πŸŽ€ NAME πŸŽ€

rte_gpu_info β€” the struct that holds all the deets about a GPU device πŸ’…


✨ SYNOPSIS ✨

#include <rte_gpudev.h>

πŸ¦‹ Data Fields

  • const char * name
  • uint64_t context
  • int16_t dev_id
  • int16_t parent
  • uint32_t processor_count
  • size_t total_memory
  • size_t page_size
  • int16_t numa_node

🌸 Detailed Description 🌸

Store device info. like… that's the whole job. it holds the info. it's the container bestie πŸ’–

Definition at line 49 of file rte_gpudev.h.


πŸ‘‘ Field Documentation πŸ‘‘

πŸ’œ const char* name

Unique identifier name β€” the one-of-a-kind name, no dupes allowed, it's giving main character energy ✨

Definition at line 51 of file rte_gpudev.h.

πŸ’œ uint64_t context

Opaque handler of the device context β€” opaque meaning u literally cannot see inside it, it's mysterious on purpose πŸ™ˆ just pass it around and trust the process.

Definition at line 53 of file rte_gpudev.h.

πŸ’œ int16_t dev_id

Device ID. short, sweet, identified πŸ’…

Definition at line 55 of file rte_gpudev.h.

πŸ’œ int16_t parent

ID of the parent device, RTE_GPU_ID_NONE if no parent β€” so like, does this GPU have a mom? if not, it's RTE_GPU_ID_NONE, orphan era 😭 periodt.

Definition at line 57 of file rte_gpudev.h.

πŸ’œ uint32_t processor_count

Total processors available on device β€” count 'em all, every single one πŸ”₯

Definition at line 59 of file rte_gpudev.h.

πŸ’œ size_t total_memory

Total memory available on device β€” the whole bag, no cap πŸ’°

Definition at line 61 of file rte_gpudev.h.

πŸ’œ size_t page_size

GPU memory page size β€” the size of a page, but a GPU page, so, yk, GPU memory page size πŸŽ€

Definition at line 63 of file rte_gpudev.h.

πŸ’œ int16_t numa_node

Local NUMA memory ID. -1 if unknown β€” and bestie if it's unknown, it's literally -1, she said "idk" and moved on πŸ’€

Definition at line 65 of file rte_gpudev.h.


🧚 Author 🧚

Generated automatically by Doxygen for DPDK from the source code. so like, no human wrote this prose, a robot did, and honestly? slay πŸ€–βœ¨


and that's the whole page bestie!! this came to u from DPDK, Version 25.11.3 🫢 go forth and read ur GPU fields, ily, bye πŸ‘‘πŸ’–

πŸ“¦ where this page comes from