git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpudev: add child device representing a device context
[dpdk.git]
/
app
/
test-gpudev
/
main.c
diff --git
a/app/test-gpudev/main.c
b/app/test-gpudev/main.c
index
15b6e4e
..
438cfda
100644
(file)
--- a/
app/test-gpudev/main.c
+++ b/
app/test-gpudev/main.c
@@
-88,8
+88,9
@@
main(int argc, char **argv)
if (rte_gpu_info_get(gpu_id, &ginfo))
rte_exit(EXIT_FAILURE, "rte_gpu_info_get error - bye\n");
if (rte_gpu_info_get(gpu_id, &ginfo))
rte_exit(EXIT_FAILURE, "rte_gpu_info_get error - bye\n");
- printf("\tGPU ID %d\n\t\tGPU Bus ID %s NUMA node %d Tot memory %.02f MB, Tot processors %d\n",
+ printf("\tGPU ID %d\n\t\t
parent ID %d
GPU Bus ID %s NUMA node %d Tot memory %.02f MB, Tot processors %d\n",
ginfo.dev_id,
ginfo.dev_id,
+ ginfo.parent,
ginfo.name,
ginfo.numa_node,
(((float)ginfo.total_memory)/(float)1024)/(float)1024,
ginfo.name,
ginfo.numa_node,
(((float)ginfo.total_memory)/(float)1024)/(float)1024,