Skip to content

Instantly share code, notes, and snippets.

View ddemidov's full-sized avatar

Denis Demidov ddemidov

View GitHub Profile
amgcl: amgcl.cpp
g++ -O3 -fopenmp -DNDEBUG -I$(HOME)/work/amgcl -o amgcl amgcl.cpp
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.
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);
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>
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.
@ddemidov
ddemidov / main.cpp
Last active February 9, 2021 07:34 — forked from RiccardoRossi/main.cpp
#include <vector>
#include <array>
#include <iostream>
#include <chrono>
#include <cassert>
#include <cmath>
#include <omp.h>
template<
class TContainerType,
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