-
Notifications
You must be signed in to change notification settings - Fork 188
Closed
Labels
area/c++Involves the C++ code portions of qsimInvolves the C++ code portions of qsim
Description
Describe the issue
On Debian Linux 6.2 with g++ 14, running make tests generates some memory allocation warnings:
g++ decide/decide.cpp -o ../qsimcirq/qsim_decide.cpython-311-x86_64-linux-gnu.so -O3 -std=c++17 -fopenmp -flto=auto -Wall -shared -std=c++17 -fPIC -I/usr/local/google/home/mhucka/.pyenv/versions/3.11.9/include/python3.11 -I/usr/local/google/home/mhucka/.pyenv/versions/qsim-py311/lib/python3.11/site-packages/pybind11/include
In member function ‘deallocate’,
inlined from ‘deallocate’ at /usr/include/c++/14/bits/alloc_traits.h:550:23,
inlined from ‘_M_deallocate’ at /usr/include/c++/14/bits/stl_vector.h:389:19,
inlined from ‘__dt_base ’ at /usr/include/c++/14/bits/stl_vector.h:368:15,
inlined from ‘__dt_base ’ at /usr/include/c++/14/bits/stl_vector.h:738:7,
inlined from ‘ApplyFusedGate’ at basic/../../lib/gate_appl.h:227:1,
inlined from ‘Run.isra’ at basic/../../lib/run_qsim.h:130:26:
/usr/include/c++/14/bits/new_allocator.h:172:33: warning: ‘operator delete’ called on pointer ‘discarded_results.D.5631._M_impl.D.5625._M_finish’ with nonzero offset 48 [-Wfree-nonheap-object]
172 | _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
| ^
Tell us how to reproduce the issue
No response
Tell us the version of qsim or qsimcirq (if relevant)
0.23.0.dev0
Tell us the computing environment (if relevant)
Debian Linux 6.2, GNU make, g++
Metadata
Metadata
Assignees
Labels
area/c++Involves the C++ code portions of qsimInvolves the C++ code portions of qsim