Comments (4)
Thanks Michael for checking this. There was indeed a leak when I was not removing the thread_attr instances. I removed them now with pthread_attr_destroy(). A PR is coming.
before:
LEAK SUMMARY:
==13565== definitely lost: 8,970,752 bytes in 70,022 blocks
==13565== indirectly lost: 0 bytes in 0 blocks
==13565== possibly lost: 256 bytes in 2 blocks
==13565== still reachable: 0 bytes in 0 blocks
==13565== suppressed: 0 bytes in 0 blocks
==13565==
==13565== For counts of detected and suppressed errors, rerun with: -v
==13565== Use --track-origins=yes to see where uninitialised values come from
==13565== ERROR SUMMARY: 61 errors from 50 contexts (suppressed: 0 from 0)
after:
HEAP SUMMARY:
==15327== in use at exit: 8,192 bytes in 2 blocks
==15327== total heap usage: 109,228 allocs, 109,226 frees, 13,208,823 bytes allocated
==15327==
==15327== 4,096 bytes in 1 blocks are definitely lost in loss record 1 of 2
==15327== at 0x4C2B8A8: operator new[](unsigned long) (vg_replace_malloc.c:423)
==15327== by 0x465F92: SNN::copyAuxiliaryData(int, int, RuntimeData_s*, bool) (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327== by 0x467FB4: SNN::allocateSNN_CPU(int) (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327== by 0x43CD48: SNN::generateRuntimeSNN() (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327== by 0x406431: CARLsim::setupNetwork() (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327== by 0x405281: main (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327==
==15327== 4,096 bytes in 1 blocks are definitely lost in loss record 2 of 2
==15327== at 0x4C2B8A8: operator new[](unsigned long) (vg_replace_malloc.c:423)
==15327== by 0x465FED: SNN::copyAuxiliaryData(int, int, RuntimeData_s*, bool) (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327== by 0x467FB4: SNN::allocateSNN_CPU(int) (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327== by 0x43CD48: SNN::generateRuntimeSNN() (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327== by 0x406431: CARLsim::setupNetwork() (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327== by 0x405281: main (in /home/hirak/CARLsim4/projects/hello_world/hello_world)
==15327==
==15327== LEAK SUMMARY:
==15327== definitely lost: 8,192 bytes in 2 blocks
==15327== indirectly lost: 0 bytes in 0 blocks
==15327== possibly lost: 0 bytes in 0 blocks
==15327== still reachable: 0 bytes in 0 blocks
==15327== suppressed: 0 bytes in 0 blocks
from carlsim4.
We still have some leak here:
SNN::copyAuxiliaryData()
from carlsim4.
PR
#22
from carlsim4.
fixed with #22
from carlsim4.
Related Issues (20)
- update user guide neurons section
- username removal HOT 1
- LIF neurons won't spike HOT 1
- Tutorial 4 Matlab OAT error
- Assertion error when calling sim.setWeight on 2 different neuron groups HOT 7
- Visual Studio solution does not open or build without CUDA HOT 3
- glbNetworkConfig.maxDelay > 1 despite setting all delays to 1 or less
- User Defined connection error
- MAX_CONN_PER_SNN assertion error HOT 1
- Math is not rendered in doxygen HOT 2
- Can't Install CARLsim4 with latest CUDA and Latest VS HOT 2
- inconsistency between partitioning combinations
- `make debug` does not exist?
- Missing carlsim.lib HOT 2
- CARLsim windows installation HOT 2
- Update PTI code HOT 4
- Move ECJ extensions into main ECJ codebase HOT 1
- Add example project demonstrating ECJ integration
- Neuronmonitor declaration in CONFIG state -- fix message saying config or setup
- CARLsim4 on Ubuntu 20.04 LTS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carlsim4.