Lcrypto / Simulated-annealing-lifting-QC-LDPC

Simulated annealing lifting for high girth QC-LDPC include ACE/EMD optimization. Make QC-LDPC from protograph (base matrix)
GNU General Public License v3.0
20 stars 9 forks source link

stackdump on Win Platform #3

Open victorchou0811 opened 5 years ago

victorchou0811 commented 5 years ago

I'm implementing such algorithm on Windows by using Clion with command as follows: simulatedAnnealingEMD.exe -file proto.txt -circulant 500 -upGirth 6 -emd 2 -seed 123 -numberOfMatrices 1 -girth 8 proto.txt: 16 6 1 0 0 0 0 1 0 1 0 1 1 0 1 0 0 2 1 1 0 0 0 0 0 1 1 0 0 1 0 1 1 2 0 1 1 0 0 0 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 0 1 0 1 0 0 1 1 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 2 0 0 0 0 1 1 1 0 1 0 0 1 1 0 0 2

However, it cause stackdump and error as follows: 0 [main] simulatedAnnealingEMD 5394 cygwin_exception::open_stackdumpfile: Dumping stack trace to SimulatedAnnealing.exe.stackdump

Lcrypto commented 5 years ago

Just use MS studio to build project. I return windows binary file and Multi-edge LDPC lifting example in folder. If you use linux like tool-chain (i see cygwin in you error), compile source code from 'linux' folder by 'run.sh' compile script. I make copy of SA lifting project for demo on linux on https://codeocean.com/capsule/1267563/tree/v1.
With BR, Vasiliy.

ghost commented 5 years ago

I compile the linux version under windows with mingwin-64 without problems. I just did a quick compile and run on the latest code in the linux directory and it worked with the sample proto.txt in that directory. Maybe your proto.txt doesn't have the right format or isn't in the right directory... The line feeds got messed up in your post so it's hard to tell. Does the program run with the sample proto.txt ?

Lcrypto commented 5 years ago

Dear ymaqdisi. I check all example. It work, please try at codeocean (https://codeocean.com/capsule/1267563/ ) capsule version. If you shall have problem in capsule write to me.

ghost commented 5 years ago

I should have put @victorchou0811 in my post; the response was directed to him to see if the example worked for him on windows...