@@ -133,7 +133,7 @@ namespace ReSolve
133133 index_type* matrix::Coo::getRowData (memory::MemorySpace memspace)
134134 {
135135 using namespace ReSolve ::memory;
136- // syncData(memspace);
136+
137137 switch (memspace) {
138138 case HOST:
139139 return this ->h_row_data_ ;
@@ -147,7 +147,7 @@ namespace ReSolve
147147 index_type* matrix::Coo::getColData (memory::MemorySpace memspace)
148148 {
149149 using namespace ReSolve ::memory;
150- // syncData(memspace);
150+
151151 switch (memspace) {
152152 case HOST:
153153 return this ->h_col_data_ ;
@@ -161,7 +161,7 @@ namespace ReSolve
161161 real_type* matrix::Coo::getValues (memory::MemorySpace memspace)
162162 {
163163 using namespace ReSolve ::memory;
164- // syncData(memspace);
164+
165165 switch (memspace) {
166166 case HOST:
167167 return this ->h_val_data_ ;
@@ -304,11 +304,11 @@ namespace ReSolve
304304 switch (memspace) {
305305 case HOST:
306306 if (h_data_updated_) {
307- out::misc () << " In Csr ::syncData trying to sync host, but host already up to date!\n " ;
307+ out::misc () << " In Coo ::syncData trying to sync host, but host already up to date!\n " ;
308308 return 0 ;
309309 }
310310 if (!d_data_updated_) {
311- out::error () << " In Csr ::syncData trying to sync host with device, but device is out of date!\n " ;
311+ out::error () << " In Coo ::syncData trying to sync host with device, but device is out of date!\n " ;
312312 assert (d_data_updated_);
313313 }
314314 if ((h_row_data_ == nullptr ) != (h_col_data_ == nullptr )) {
@@ -330,11 +330,11 @@ namespace ReSolve
330330 return 0 ;
331331 case DEVICE:
332332 if (d_data_updated_) {
333- out::misc () << " In Csr ::syncData trying to sync device, but device already up to date!\n " ;
333+ out::misc () << " In Coo ::syncData trying to sync device, but device already up to date!\n " ;
334334 return 0 ;
335335 }
336336 if (!h_data_updated_) {
337- out::error () << " In Csr ::syncData trying to sync device with host, but host is out of date!\n " ;
337+ out::error () << " In Coo ::syncData trying to sync device with host, but host is out of date!\n " ;
338338 assert (h_data_updated_);
339339 }
340340 if ((d_row_data_ == nullptr ) != (d_col_data_ == nullptr )) {
0 commit comments