- Install rpyc both on the ev3 and on your desktop computer with
sudo easy_install3 rpyc
- Create file
rpyc_server.sh
on the ev3:
hello: hello.cpp | |
g++ -std=c++0x -o hello hello.cpp -lOpenCL |
sudo easy_install3 rpyc
rpyc_server.sh
on the ev3:rebuild: rebuild.cpp | |
mpic++ -o $@ $^ -I$(AMGCL_ROOT) -O3 -fopenmp -DNDEBUG |
PyAMG | |
---------------- | |
multilevel_solver | |
Number of Levels: 5 | |
Operator Complexity: 1.338 | |
Grid Complexity: 1.188 | |
Coarse Solver: 'pinv2' | |
level unknowns nonzeros | |
0 1048576 5238784 [74.73%] |
cmake_minimum_required(VERSION 3.11) | |
project(hello) | |
find_package(amgcl) | |
add_executable(hello amgcl.cpp) | |
target_link_libraries(hello amgcl::amgcl) |
test_amgcl_mpi: test_amgcl_mpi.cpp | |
mpic++ -o $@ $^ -I$(AMGCL_ROOT) -O3 -fopenmp -DNDEBUG |
#include <vector> | |
#include <iostream> | |
#include <amgcl/backend/builtin.hpp> | |
#include <amgcl/value_type/static_matrix.hpp> | |
#include <amgcl/adapter/eigen.hpp> | |
#include <amgcl/adapter/block_matrix.hpp> | |
#include <amgcl/mpi/distributed_matrix.hpp> | |
#include <amgcl/mpi/make_solver.hpp> |
#include <vector> | |
#include <iostream> | |
#include <amgcl/backend/builtin.hpp> | |
#include <amgcl/value_type/static_matrix.hpp> | |
#include <amgcl/adapter/crs_tuple.hpp> | |
#include <amgcl/adapter/block_matrix.hpp> | |
#include <amgcl/mpi/distributed_matrix.hpp> | |
#include <amgcl/mpi/make_solver.hpp> |
#include <vector> | |
#include <iostream> | |
#include <amgcl/backend/builtin.hpp> | |
#include <amgcl/value_type/static_matrix.hpp> | |
#include <amgcl/adapter/crs_tuple.hpp> | |
#include <amgcl/adapter/block_matrix.hpp> | |
#include <amgcl/mpi/distributed_matrix.hpp> | |
#include <amgcl/mpi/make_solver.hpp> |
#include <vector> | |
#include <iostream> | |
#include <amgcl/backend/builtin.hpp> | |
#include <amgcl/value_type/static_matrix.hpp> | |
#include <amgcl/mpi/distributed_matrix.hpp> | |
#include <amgcl/mpi/make_solver.hpp> | |
#include <amgcl/mpi/amg.hpp> | |
#include <amgcl/mpi/coarsening/smoothed_aggregation.hpp> |