Skip to content

Commit

Permalink
fixing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qinatan committed Oct 20, 2023
1 parent f43a087 commit 633e164
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/solver/linear_solver.cu
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ __global__ void SolveKernel(SolveDevice* device)
double* d_b;
double* d_x;
SolveDevice* device;
device.n_grids_= denseMatrix.n_grids_;
device.b_column_counts_ = denseMatrix.b_column_counts_;
device.x_column_counts_ = denseMatrix.x_column_counts_;
device.nLij_Lii_size_ = linearSolver.nLij_Lii_size_;
device.nUij_Uii_size_ = linearSolver.nUij_Uii_size_;
device->n_grids_= denseMatrix.n_grids_;
device->b_column_counts_ = denseMatrix.b_column_counts_;
device->x_column_counts_ = denseMatrix.x_column_counts_;
device->nLij_Lii_size_ = linearSolver.nLij_Lii_size_;
device->nUij_Uii_size_ = linearSolver.nUij_Uii_size_;

//allocate device memory
cudaMalloc(&d_nLij_Lii, sizeof(std::pair<size_t, size_t>)* linearSolver.nLij_Lii_size_);
Expand Down

0 comments on commit 633e164

Please sign in to comment.