Skip to content

Commit

Permalink
copying data to and from device
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Jul 16, 2024
1 parent 392e55c commit fc66c17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/cuda/solver/test_cuda_rosenbrock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ TEST(RosenbrockSolver, SingularSystemZeroInBottomRightOfU)
vector_solver.solver_.parameters_.h_start_ = H;

vector_solver.CalculateRateConstants(vector_state);
vector_state.SyncInputsToDevice();

auto vector_result = vector_solver.Solve(2*H, vector_state);
vector_state.SyncOutputsToHost();
EXPECT_NE(vector_result.stats_.singular_, 0);
}

Expand Down Expand Up @@ -324,7 +326,9 @@ TEST(RosenbrockSolver, SingularSystemZeroAlongDiagonalNotBottomRight)
vector_state.variables_[3] = { 1.0, 1.0, 1.0 };

vector_solver.CalculateRateConstants(vector_state);
vector_state.SyncInputsToDevice();

auto vector_result = vector_solver.Solve(2*H, vector_state);
vector_state.SyncOutputsToHost();
EXPECT_NE(vector_result.stats_.singular_, 0);
}

0 comments on commit fc66c17

Please sign in to comment.