ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Namespaces | Functions
cuda_compat.h File Reference

Compatibility layer for CUDA and NVTX headers across different CUDA Toolkit versions. More...

#include <iostream>
#include <stdexcept>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cufft.h>
Include dependency graph for cuda_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ModuleBase
 
namespace  ModuleBase::cuda_compat
 

Functions

void ModuleBase::cuda_compat::printDeprecatedDeviceInfo (std::ostream &os, const cudaDeviceProp &prop)
 Prints device information that was deprecated or removed in CUDA 13.0.
 
void ModuleBase::cuda_compat::printComputeModeInfo (std::ostream &os, const cudaDeviceProp &prop)
 Prints the device's compute mode using a legacy string mapping.
 
const char * ModuleBase::cuda_compat::cufftGetErrorStringCompat (cufftResult_t error)
 Provides a cross-CUDA-version string conversion for cuFFT error codes.
 

Detailed Description

Compatibility layer for CUDA and NVTX headers across different CUDA Toolkit versions.

This header abstracts the differences in NVTX (NVIDIA Tools Extension) header locations between CUDA Toolkit versions.

Note
Depends on the CUDA_VERSION macro defined in <cuda.h>.