forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathVecmem.cpp
More file actions
32 lines (26 loc) · 1.02 KB
/
Vecmem.cpp
File metadata and controls
32 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// This file is part of the ACTS project.
//
// Copyright (C) 2016 CERN for the benefit of the ACTS project
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
#include "ActsPython/Utilities/Helpers.hpp"
#include "ActsPython/Utilities/Macros.hpp"
#include <memory>
#include <string>
#include <vecmem/memory/host_memory_resource.hpp>
#include <vecmem/memory/memory_resource.hpp>
namespace py = pybind11;
using namespace pybind11::literals;
PYBIND11_MODULE(ActsPluginsPythonBindingsVecmem, vecmem) {
{
py::class_<vecmem::memory_resource,
std::shared_ptr<vecmem::memory_resource>>(vecmem,
"MemoryResource");
py::class_<vecmem::host_memory_resource, vecmem::memory_resource,
std::shared_ptr<vecmem::host_memory_resource>>(
vecmem, "HostMemoryResource")
.def(py::init<>());
}
}