Skip to content

MRCuda: rename RuntimeInfo to DeviceInfo; report GPU name and total memory#6314

Merged
Fedr merged 1 commit into
masterfrom
cuda/device-info
Jun 24, 2026
Merged

MRCuda: rename RuntimeInfo to DeviceInfo; report GPU name and total memory#6314
Fedr merged 1 commit into
masterfrom
cuda/device-info

Conversation

@Fedr

@Fedr Fedr commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Extends the information that MRCuda reports about the local GPU, and renames the API to better reflect that it describes the device rather than just runtime versions.

Changes

  • Renamed Cuda::RuntimeInfoCuda::DeviceInfo and Cuda::getRuntimeInfo()Cuda::getDeviceInfo().
  • Added two fields to the struct:
    • size_t totalGlobalMem — total global memory on the device in bytes (not all of it is available to our process).
    • std::string name — device name.
  • These fields plus the compute capability are now read from a single cudaGetDeviceProperties() call, replacing the separate cudaDeviceGetAttribute() calls.
  • Clarified the doc comments: driverVersion is the maximum CUDA version supported by the driver, runtimeVersion is the application's CUDA version.
  • Updated callers (isCudaAvailable, MRTestCuda) to the renamed function.

@Fedr Fedr changed the title more CUDA information MRCuda: rename RuntimeInfo to DeviceInfo; report GPU name and total memory Jun 24, 2026
@Fedr Fedr merged commit 13ac711 into master Jun 24, 2026
40 checks passed
@Fedr Fedr deleted the cuda/device-info branch June 24, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants