Skip to content

Commit

Permalink
More of Kasia's suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelesh committed Nov 1, 2023
1 parent af16894 commit ccf04fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions resolve/matrix/Coo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ namespace ReSolve
real_type* matrix::Coo::getValues(memory::MemorySpace memspace)
{
using namespace ReSolve::memory;
copyData(memspace);
switch (memspace) {
case HOST:
copyData(memspace);
return this->h_val_data_;
case DEVICE:
copyData(memspace);
return this->d_val_data_;
default:
return nullptr;
Expand Down
3 changes: 1 addition & 2 deletions resolve/matrix/Csc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ namespace ReSolve
real_type* matrix::Csc::getValues(memory::MemorySpace memspace)
{
using namespace ReSolve::memory;
copyData(memspace);
switch (memspace) {
case HOST:
copyData(memspace);
return this->h_val_data_;
case DEVICE:
copyData(memspace);
return this->d_val_data_;
default:
return nullptr;
Expand Down
3 changes: 1 addition & 2 deletions resolve/matrix/Csr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ namespace ReSolve
real_type* matrix::Csr::getValues(memory::MemorySpace memspace)
{
using namespace ReSolve::memory;
copyData(memspace);
switch (memspace) {
case HOST:
copyData(memspace);
return this->h_val_data_;
case DEVICE:
copyData(memspace);
return this->d_val_data_;
default:
return nullptr;
Expand Down

0 comments on commit ccf04fc

Please sign in to comment.