NAMD
ComputePmeCUDAKernel.h
Go to the documentation of this file.
1 #if defined(NAMD_CUDA) || defined(NAMD_HIP)
2 #ifdef NAMD_HIP
3 #include <hip/hip_runtime.h>
4 #include "HipDefines.h"
5 #endif
6 #ifndef __CUDACC__
7 #undef __align__
8 #define __align__(X)
9 #endif
10 
11 void cuda_init_bspline_coeffs(float **c, float **dc, int order);
12 
13 #define CUDA_PME_CHARGES_PROTOTYPE \
14 void cuda_pme_charges( \
15  const float *coeffs, \
16  float * const *q_arr, int *f_arr, int *fz_arr, \
17  float *a_data, int n_atoms, \
18  int K1, int K2, int K3, \
19  int order, cudaStream_t stream)
20 
22 
23 
24 #define CUDA_PME_CHARGES_BATCHED_PROTOTYPE \
25 void cuda_pme_charges_batched( \
26  const float *coeffs, \
27  float * const *q_arr, int *f_arr, int *fz_arr, \
28  float **a_data_ptr, int* n_atoms_ptr, \
29  int* K1_ptr, int* K2_ptr, int* K3_ptr, \
30  int order, int numPatches, int n_max_atoms, cudaStream_t stream)
31 
33 
34 
35 #define CUDA_PME_FORCES_PROTOTYPE \
36 void cuda_pme_forces( \
37  const float *coeffs, \
38  float * const *q_arr, \
39  float * const *afn, int dimy, int maxn, \
40  /* float *a_data, float *f_data, int n_atoms, */ \
41  int K1, int K2, int K3, \
42  int order, cudaStream_t stream)
43 
45 
46 #endif // NAMD_CUDA
47 
#define CUDA_PME_FORCES_PROTOTYPE
#define CUDA_PME_CHARGES_BATCHED_PROTOTYPE
#define CUDA_PME_CHARGES_PROTOTYPE
#define order
Definition: PmeRealSpace.C:235
void cuda_init_bspline_coeffs(float **c, float **dc, int order)