project-jcarbon / jcarbon

0 stars 1 forks source link

Create GPU Energy source #2

Open atpoverload opened 7 months ago

atpoverload commented 7 months ago

Add code to sample energy data from Nvidia GPUs. We want something similar to the jcarbon.cpu.rapl package.

atpoverload commented 7 months ago

Should be able to leverage this: https://github.com/bytedeco/javacpp-presets/blob/master/cuda/src/gen/java/org/bytedeco/cuda/global/nvml.java#L4544-L4546

atpoverload commented 7 months ago

Put together an (untested) implementation in https://github.com/project-jcarbon/jcarbon/tree/nvml-sampling