The NVIDIA® Management Library (NVML) is a public C-based library for GPU monitoring and management. It includes APIs that report the status and count of retired pages. Please see the NVML API docs for general info on the library.
NVML provides
The ability to list retired page addresses, including the count and reason for each page retired.
The ability to see if a page is pending retirement and needs a driver reload to retire the page.
The set of currently retired pages, and their addresses, can be retrieved using the following code:
System-wide provisioning with multiple users.