Skip to content

Commit

Permalink
To support py3.11, pybind need to upgrade to v2.10.0 (#51350)
Browse files Browse the repository at this point in the history
* to support cuda12, pybind need to upgrade to v2.10.0

* add DEPS of pybind in test_custom_plugin_creater.cc

* only change the tag

* please let CI pass

* try pybind v2.10/3

* modify the include header in test

* code check
  • Loading branch information
zhengqiwen1997 authored Mar 23, 2023
1 parent 288ad84 commit 13b8b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/external/pybind11.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ include(ExternalProject)

set(PYBIND_PREFIX_DIR ${THIRD_PARTY_PATH}/pybind)
set(PYBIND_REPOSITORY ${GIT_URL}/pybind/pybind11.git)
set(PYBIND_TAG v2.6.0)
set(PYBIND_TAG v2.10.3)

set(PYBIND_INCLUDE_DIR ${THIRD_PARTY_PATH}/pybind/src/extern_pybind/include)
include_directories(${PYBIND_INCLUDE_DIR})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ limitations under the License. */

#include <gtest/gtest.h> // NOLINT

#include "paddle/extension.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/inference/tensorrt/convert/op_converter.h"
#include "paddle/fluid/inference/tensorrt/convert/test_custom_op_plugin.h"
#include "paddle/phi/api/all.h"

PD_BUILD_OP(custom_op)
.Inputs({"Input"})
Expand Down

0 comments on commit 13b8b5e

Please sign in to comment.