This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amgcl: amgcl.cpp | |
g++ -O3 -fopenmp -DNDEBUG -I$(HOME)/work/amgcl -o amgcl amgcl.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amgcl: amgcl.cpp | |
g++ -O3 -fopenmp -DNDEBUG -I$(HOME)/work/amgcl -o amgcl amgcl.cpp |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/amgcl/util.hpp b/amgcl/util.hpp | |
index d18573f..70f2fd9 100644 | |
--- a/amgcl/util.hpp | |
+++ b/amgcl/util.hpp | |
@@ -65,8 +65,9 @@ THE SOFTWARE. | |
#ifdef AMGCL_PROFILING | |
# if !defined(AMGCL_TIC) || !defined(AMGCL_TOC) | |
# include <amgcl/profiler.hpp> | |
+# include <vexcl/devlist.hpp> | |
# define AMGCL_TIC(name) amgcl::prof.tic(name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/amgcl/backend/vexcl.hpp b/amgcl/backend/vexcl.hpp | |
index 65136f1..25f8cbc 100644 | |
--- a/amgcl/backend/vexcl.hpp | |
+++ b/amgcl/backend/vexcl.hpp | |
@@ -134,7 +134,7 @@ struct vexcl { | |
typedef ptrdiff_t index_type; | |
typedef vex::sparse::distributed< | |
- vex::sparse::matrix<value_type, index_type, index_type> | |
+ vex::sparse::csr<value_type, index_type, index_type> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vexcl/sparse/ell.hpp b/vexcl/sparse/ell.hpp | |
index d3c368c5..18cd25c4 100644 | |
--- a/vexcl/sparse/ell.hpp | |
+++ b/vexcl/sparse/ell.hpp | |
@@ -405,10 +405,13 @@ class ell { | |
{ | |
size_t nnz = host_ptr[n]; | |
+ AMGCL_TIC("memcpy"); | |
backend::device_vector<Ptr> Aptr(q, n+1, &host_ptr[0]); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <array> | |
#include <iostream> | |
#include <chrono> | |
#include <cassert> | |
#include <cmath> | |
#include <omp.h> | |
template< | |
class TContainerType, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: reuse_flat reuse_full | |
reuse_full: reuse.cpp | |
g++ -o reuse_full -O3 -DNDEBUG -fopenmp -I$(AMGCL_ROOT) reuse.cpp | |
reuse_flat: reuse.cpp | |
g++ -o reuse_flat -DSOLVER_FLAT -O3 -DNDEBUG -fopenmp -I$(AMGCL_ROOT) reuse.cpp |