Skip to content

A Java wrapper for the NVIDIA Management Library.

Notifications You must be signed in to change notification settings

henkelmax/nvmlj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NVMLJ GitHub Workflow Status GitHub issues GitHub release (latest by date)

Logo

A Java wrapper for the NVIDIA Management Library.

Usage

Maven (pom.xml)

<dependency>
  <groupId>de.bommel24.nvmlj</groupId>
  <artifactId>nvmlj</artifactId>
  <version>1.0.2</version>
</dependency>
<repository>
  <id>henkelmax.public</id>
  <url>https://maven.maxhenkel.de/repository/public</url>
</repository>

Example

// The path to the nvml library (Defaults to C:/Program Files/NVIDIA Corporation/NVSMI/nvml.dll)
System.setProperty("nvml.path", "path/to/your/nvml.dll");
NVMLJ.nvmlInit();
System.out.println(NVMLJ.nvmlDeviceGetCount());
NVMLJ.nvmlShutdown();