ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
gpu_runtime.h File Reference

Unified CUDA/ROCm API macros for portable GPU code. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Unified CUDA/ROCm API macros for portable GPU code.

This header provides macro abstraction for CUDA/ROCm APIs, allowing a single implementation to work with both CUDA and ROCm backends.

Usage: #include "gpu_runtime.h" gpuError_t err = gpuGetDeviceCount(&count); if (err != gpuSuccess) { ... }