Skip to content
Snippets Groups Projects
Commit 60b48c9d authored by Dan Ibanez's avatar Dan Ibanez
Browse files

add missing KOKKOS_INLINE_FUNCTION attributes

this structure gets put inside a DualView,
so these members need to be able to execute
on the GPU
parent 3d40b517
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,9 @@ class PairBuckCoulCutKokkos : public PairBuckCoulCut { ...@@ -44,7 +44,9 @@ class PairBuckCoulCutKokkos : public PairBuckCoulCut {
double init_one(int, int); double init_one(int, int);
struct params_buck_coul{ struct params_buck_coul{
KOKKOS_INLINE_FUNCTION
params_buck_coul(){cut_ljsq=0;cut_coulsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;}; params_buck_coul(){cut_ljsq=0;cut_coulsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;};
KOKKOS_INLINE_FUNCTION
params_buck_coul(int i){cut_ljsq=0;cut_coulsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;}; params_buck_coul(int i){cut_ljsq=0;cut_coulsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;};
F_FLOAT cut_ljsq,cut_coulsq,a,c,rhoinv,buck1,buck2,offset; F_FLOAT cut_ljsq,cut_coulsq,a,c,rhoinv,buck1,buck2,offset;
}; };
......
...@@ -45,7 +45,9 @@ class PairBuckCoulLongKokkos : public PairBuckCoulLong { ...@@ -45,7 +45,9 @@ class PairBuckCoulLongKokkos : public PairBuckCoulLong {
double init_one(int, int); double init_one(int, int);
struct params_buck_coul{ struct params_buck_coul{
KOKKOS_INLINE_FUNCTION
params_buck_coul(){cut_ljsq=0;cut_coulsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;}; params_buck_coul(){cut_ljsq=0;cut_coulsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;};
KOKKOS_INLINE_FUNCTION
params_buck_coul(int i){cut_ljsq=0;cut_coulsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;}; params_buck_coul(int i){cut_ljsq=0;cut_coulsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;};
F_FLOAT cut_ljsq,cut_coulsq,a,c,rhoinv,buck1,buck2,offset; F_FLOAT cut_ljsq,cut_coulsq,a,c,rhoinv,buck1,buck2,offset;
}; };
......
...@@ -43,7 +43,9 @@ class PairBuckKokkos : public PairBuck { ...@@ -43,7 +43,9 @@ class PairBuckKokkos : public PairBuck {
double init_one(int, int); double init_one(int, int);
struct params_buck{ struct params_buck{
KOKKOS_INLINE_FUNCTION
params_buck(){cutsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;}; params_buck(){cutsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;};
KOKKOS_INLINE_FUNCTION
params_buck(int i){cutsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;}; params_buck(int i){cutsq=0;a=0;c=0;rhoinv=0;buck1=0;buck2=0;offset=0;};
F_FLOAT cutsq,a,c,rhoinv,buck1,buck2,offset; F_FLOAT cutsq,a,c,rhoinv,buck1,buck2,offset;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment