Skip to content

Commit

Permalink
Subcycling: remove unnecessary CCTK_DEVICE
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Apr 21, 2024
1 parent 14845e3 commit 5dc3819
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Subcycling/src/subcycling.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ inline array<int, Loop::dim> get_group_indextype(const int gi) {
* \param stage RK stage number starting from 1
*/
template <int RKSTAGES>
CCTK_DEVICE CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CalcYfFromKcs(const Loop::GridDescBaseDevice &grid,
const Loop::GF3D2<CCTK_REAL> &Yf,
const Loop::GF3D2<const CCTK_REAL> &u0,
Expand Down Expand Up @@ -164,7 +164,7 @@ CalcYfFromKcs(const Loop::GridDescBaseDevice &grid,

/* Varlist version */
template <int RKSTAGES>
CCTK_DEVICE CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CalcYfFromKcs(CCTK_ARGUMENTS, vector<int> &Yfs, vector<int> &u0s,
const array<vector<int>, RKSTAGES> &kcss, const CCTK_REAL dtc,
const CCTK_REAL xsi, const CCTK_INT stage) {
Expand Down
8 changes: 4 additions & 4 deletions TestSubcyclingMC/src/testsubcyclingmc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extern "C" void TestSubcyclingMC_Initial(CCTK_ARGUMENTS) {
* \param vlu state vector Us
*/
template <int D, typename tVarOut>
CCTK_DEVICE CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CalcRhs(const Loop::GridDescBaseDevice &grid, const array<tVarOut, D> &vlr,
const array<tVarOut, D> &vlu) {
tVarOut &u_rhs = vlr[0];
Expand Down Expand Up @@ -138,7 +138,7 @@ CalcRhs(const Loop::GridDescBaseDevice &grid, const array<tVarOut, D> &vlr,
* \param dt time factor of each RK substep
*/
template <int D, typename tVarOut>
CCTK_DEVICE CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
UpdateU(const Loop::GridDescBaseDevice &grid, const array<tVarOut, D> &vlu,
const array<tVarOut, D> &vlr, const CCTK_REAL dt) {
for (size_t v = 0; v < D; ++v) {
Expand All @@ -160,7 +160,7 @@ UpdateU(const Loop::GridDescBaseDevice &grid, const array<tVarOut, D> &vlu,
* \param dt time factor of each RK substep
*/
template <int D, typename tVarOut>
CCTK_DEVICE CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CalcRhsAndUpdateU(const Loop::GridDescBaseDevice &grid,
const array<tVarOut, D> &vlr, const array<tVarOut, D> &vlw,
const array<tVarOut, D> &vlu, const CCTK_REAL dt) {
Expand All @@ -178,7 +178,7 @@ CalcRhsAndUpdateU(const Loop::GridDescBaseDevice &grid,
* \param dt time factor of each RK substage
*/
template <int D, typename tVarOut, typename tVarIn>
CCTK_DEVICE CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CCTK_HOST CCTK_ATTRIBUTE_ALWAYS_INLINE inline void
CalcYs(const Loop::GridDescBaseDevice &grid, const array<tVarOut, D> &vlw,
const array<tVarIn, D> &vlp, const array<tVarOut, D> &vlr,
const CCTK_REAL dt) {
Expand Down

0 comments on commit 5dc3819

Please sign in to comment.