|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Functions | |
| void | printDeprecatedDeviceInfo (std::ostream &os, const cudaDeviceProp &prop) |
| Prints device information that was deprecated or removed in CUDA 13.0. | |
| void | printComputeModeInfo (std::ostream &os, const cudaDeviceProp &prop) |
| Prints the device's compute mode using a legacy string mapping. | |
| const char * | cufftGetErrorStringCompat (cufftResult_t error) |
| Provides a cross-CUDA-version string conversion for cuFFT error codes. | |
| const char * ModuleBase::cuda_compat::cufftGetErrorStringCompat | ( | cufftResult_t | error | ) |
Provides a cross-CUDA-version string conversion for cuFFT error codes.
In CUDA 13.0, several error codes were removed. This function handles these differences gracefully.
| error | The cufftResult_t error code. |
| void ModuleBase::cuda_compat::printComputeModeInfo | ( | std::ostream & | os, |
| const cudaDeviceProp & | prop | ||
| ) |
Prints the device's compute mode using a legacy string mapping.
The compute mode display logic is encapsulated here as it relies on aspects of the driver model that have changed.
| os | The output stream (e.g., std::cout, std::ofstream). |
| prop | The cudaDeviceProp structure containing device properties. |
| void ModuleBase::cuda_compat::printDeprecatedDeviceInfo | ( | std::ostream & | os, |
| const cudaDeviceProp & | prop | ||
| ) |
Prints device information that was deprecated or removed in CUDA 13.0.
This function handles properties like clockRate, memoryClockRate, memoryBusWidth, and concurrency flags, which are not available in newer CUDA toolkits.
| os | The output stream (e.g., std::cout, std::ofstream). |
| prop | The cudaDeviceProp structure containing device properties. |