xref: /petsc/include/petscdevice_cupm.h (revision 750b007cd8d816cecd9de99077bb0a703b4cf61a) !
1 #ifndef PETSCDEVICE_CUPM_H
2 #define PETSCDEVICE_CUPM_H
3 
4 #include <petscmacros.h>
5 #include <petscdevice_cuda.h>
6 #include <petscdevice_hip.h>
7 
8 #if PetscDefined(USING_HCC) && PetscDefined(USING_NVCC)
9 #error using both nvcc and hipcc at the same time?
10 #endif
11 
12 #if PetscDefined(HAVE_CUDA) || PetscDefined(HAVE_HIP)
13 #define PETSC_HAVE_CUPM 1
14 #endif
15 
16 #if PetscDefined(USING_NVCC) || PetscDefined(USING_HCC)
17 #define PETSC_USING_CUPMCC 1
18 #endif
19 
20 #endif // PETSCDEVICE_CUPM_H
21