From e931a0d8fe80ae4060611ab72ec3bcc53a4ebbe9 Mon Sep 17 00:00:00 2001 From: Brig Bagley Date: Mon, 29 Feb 2016 19:48:54 -0700 Subject: [PATCH] debugging --- src/core/cuda/smoothedMG_amg_level.cu | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/core/cuda/smoothedMG_amg_level.cu b/src/core/cuda/smoothedMG_amg_level.cu index 2da4169..78399ad 100644 --- a/src/core/cuda/smoothedMG_amg_level.cu +++ b/src/core/cuda/smoothedMG_amg_level.cu @@ -220,7 +220,11 @@ void SmoothedMG_AMG_Level::generateMatrixSymmetric_d( thrust::raw_pointer_cast(&entrypartlabel[0]), thrust::raw_pointer_cast(&permutation[0]), thrust::raw_pointer_cast(&partitionlabel[0])); - + std::vector entrypartlabelvec; + cusp::array1d entrypartlabel_h(entrypartlabel); + for (size_t i = 0; i < entrypartlabel_h.size(); i++) { + entrypartlabelvec.push_back(entrypartlabel_h[i]); + } typedef IdxVector_d::iterator IntIterator; typedef Vector_d::iterator FloatIterator; typedef thrust::tuple IteratorTuple; @@ -230,6 +234,11 @@ void SmoothedMG_AMG_Level::generateMatrixSymmetric_d( Acoo_d.column_indices.begin(), Acoo_d.values.begin())); thrust::sort_by_key(entrypartlabel.begin(), entrypartlabel.end(), iter); + std::vector entrypartlabelvec2; + entrypartlabel_h = cusp::array1d(entrypartlabel); + for (size_t i = 0; i < entrypartlabel_h.size(); i++) { + entrypartlabelvec2.push_back(entrypartlabel_h[i]); + } if (verbose) printf("partition number is %d\n", numpart);