Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Dec 20, 2019
1 parent 8e2aef8 commit 47b37d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
- ./venv
key: v2-dependencies-{{ checksum "requirements.txt" }}

- run:
name: gcc version
command: |
. venv/bin/activate
gcc --version
- run:
name: compile and build
command: |
Expand Down
3 changes: 2 additions & 1 deletion cpyquickhelper/examples/custom_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class CustomContainer
{
public:

CustomContainer(size_t size=0, void *p=NULL, ContainerType type=ContainerType::VOID,
CustomContainer(size_t size=0, void *p=NULL,
ContainerType type=ContainerType::VOID,
bool copy=false, bool del=true);
~CustomContainer();

Expand Down
5 changes: 3 additions & 2 deletions cpyquickhelper/numbers/cbenchmark_dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ float vector_dot_product16_avx512(py::array_t<float> v1, py::array_t<float> v2)

// See https://github.com/pybind/pybind11/issues/616.
// Required to use ExecutionStat defined in cbenchmark.
template <> struct py::detail::type_caster<ExecutionStat> {
namespace pybind11 { namespace detail {
template <> struct type_caster<ExecutionStat> {
PYBIND11_TYPE_CASTER(ExecutionStat, _("ExecutionStat"));

bool load(handle src, bool) {
Expand All @@ -595,7 +596,7 @@ template <> struct py::detail::type_caster<ExecutionStat> {
return tv_py.release();
}
};

} }

PYBIND11_MODULE(cbenchmark_dot, m) {
m.doc() =
Expand Down

0 comments on commit 47b37d7

Please sign in to comment.