Select Git revision
context.hpp
akuesters
authored and
Ben Cumming
committed
First step towards the Python front end. This commit sets up the structure of the python implementation * directory structure * git submodule for pybind11 * best practices for making bindings with pybind11 * unit testing for the python front end It implements the following features in the Python front end * execution contexts * gpu detection * thread count detection * MPI initialization helpers. Fixes #667.
context.hpp 197 B
#pragma once
#include <arbor/context.hpp>
namespace pyarb {
struct context_shim {
arb::context context;
context_shim(arb::context&& c): context(std::move(c)) {}
};
} // namespace pyarb