Skip to content

Commit

Permalink
attempt to let more CI tests pass...
Browse files Browse the repository at this point in the history
How many more such miserable changes would it take to have
CI pass, with the use of IFELSE_K{2,3}D in code generation??
maybe this is not such a good approach.
  • Loading branch information
kweide committed Aug 23, 2024
1 parent ee4d8e8 commit 6cc46cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ void DataPacket_gpu_tf_hydro::pack(void) {
char_ptr = static_cast<char*>(static_cast<void*>(_tile_arrayBounds_p)) + n * SIZE_TILE_ARRAYBOUNDS;
std::memcpy(static_cast<void*>(char_ptr), static_cast<void*>(_tile_arrayBounds_h), SIZE_TILE_ARRAYBOUNDS);

int _lbdd_CC_1_h[4] = {(lbound.I()) + 1,(lbound.J()) + 1,(lbound.K()) + 1,1};
int _lbdd_CC_1_h[4] = {(lbound.I()) + 1,(IFELSE_K2D(lbound.J(),1)) + 1,(IFELSE_K3D(lbound.K(),1)) + 1,1};
char_ptr = static_cast<char*>(static_cast<void*>(_lbdd_CC_1_p)) + n * SIZE_LBDD_CC_1;
std::memcpy(static_cast<void*>(char_ptr), static_cast<void*>(_lbdd_CC_1_h), SIZE_LBDD_CC_1);

int _lbdd_scratch_hydro_op1_auxC_h[3] = {(lo.I()-1) + 1,(lo.J()- 1) + 1,(lo.K()- 1) + 1};
int _lbdd_scratch_hydro_op1_auxC_h[3] = {(lo.I()-1) + 1,(IFELSE_K2D(lo.J(),1)- 1) + 1,(IFELSE_K3D(lo.K(),1)- 1) + 1};
char_ptr = static_cast<char*>(static_cast<void*>(_lbdd_scratch_hydro_op1_auxC_p)) + n * SIZE_LBDD_SCRATCH_HYDRO_OP1_AUXC;
std::memcpy(static_cast<void*>(char_ptr), static_cast<void*>(_lbdd_scratch_hydro_op1_auxC_h), SIZE_LBDD_SCRATCH_HYDRO_OP1_AUXC);

Expand Down

0 comments on commit 6cc46cd

Please sign in to comment.