Skip to content

Commit fdf6faa

Browse files
committed
feat: update pybind11 submodule
1 parent c8e6461 commit fdf6faa

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if (TROY_MEMORY_POOL_UNSAFE)
115115
endif()
116116
endif()
117117

118-
set(TROY_PYBIND11_GIT_HASH "8a099e44b3d5f85b20f05828d919d2332a8de841")
118+
set(TROY_PYBIND11_GIT_HASH "a2e59f0e7065404b44dfe92a28aca47ba1378dc4")
119119

120120
if(TROY_PYBIND)
121121
directory_nonexistent_or_empty("${CMAKE_CURRENT_SOURCE_DIR}/extern/pybind11" TROY_PYBIND11_NOT_FOUND)

extern/pybind11

Submodule pybind11 updated 193 files

pybind/develop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# exit when error
2-
set -e
2+
set -ex
33

44
cd ../build
55
cmake .. -DTROY_PYBIND=ON -DCMAKE_BUILD_TYPE=Release

pybind/src/lwe_ciphertext.cu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ void register_lwe_ciphertext(pybind11::module& m) {
44

55
py::class_<LWECiphertext>(m, "LWECiphertext")
66
.def("pool", &LWECiphertext::pool)
7+
.def("address", [](const LWECiphertext& self){
8+
return reinterpret_cast<uintptr_t>(&self);
9+
})
710
.def("device_index", &LWECiphertext::device_index)
811
.def("clone", [](const LWECiphertext& self, MemoryPoolHandleArgument pool){
912
return self.clone(nullopt_default_pool(pool));

0 commit comments

Comments
 (0)