m4rs-mt / ILGPU

ILGPU JIT Compiler for high-performance .Net GPU programs
http://www.ilgpu.net
Other
1.38k stars 117 forks source link

Feature request: Add the ability to receive data from gpu sensors #387

Closed mikhail-khalizev closed 2 years ago

mikhail-khalizev commented 3 years ago

I propose to add the ability to add methods that return the current parameters of the accelerator:

m4rs-mt commented 3 years ago

@mikhail-khalizev Thanks for this feature request 👍 I guess these queries would be possible via the NVML library for Cuda-capable devices. Maybe we can create a wrapper for the ILGPU.Algorithms package. However, this also requires adding several properties to the CudaAccelerator class in order to instantiate an NVML context.

MoFtZ commented 3 years ago

Raised PR that adds some NvmlAPI bindings, and an NvmlDevice wrapper.

This wrapper supports easy access to:

lostmsu commented 3 years ago

I wonder if this should be in the scope of this library...

ShagufthaT commented 4 months ago

Is there a way to get the percentage of GPU utilized by an application in real-time?