Open guifereis opened 8 years ago
Hi,
Preallocate space for the number of nodes and edges. The following
works:
#include "Snap.h"
using namespace std;
int main() {
PNEANetMP gg = TNEANetMP::New(1000,10000);
gg->AddNode(1);
}
Thanks,
Rok
On 08/26/16 03:37, guifereis wrote:
Hi,
I am trying to test the new multithreaded PNEANetMP. However, I
cannot even add a node. Here is code that reproduces the bug:
#include "Snap.h"
using namespace std;
int main() { PNEANetMP gg = TNEANetMP::New(); gg->AddNode(1); }
the gg->AddNode(1) line results in the
following error and crash: "Floating point exception (core
dumped)".
Let me know if I can help with debugging/testing, or if my code
does something wrong. Thanks!
—
You are receiving this because you are subscribed to this
thread.
Reply to this email directly, view it
on GitHub, or mute
the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/snap-stanford/snap","title":"snap-stanford/snap","subtitle":"GitHub repository","main_image_url":<a class="moz-txt-link-rfc2396E" href="https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png">"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png"</a>,"avatar_image_url":<a class="moz-txt-link-rfc2396E" href="https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png">"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png"</a>,"action":{"name":"Open in GitHub","url":<a class="moz-txt-link-rfc2396E" href="https://github.com/snap-stanford/snap">"https://github.com/snap-stanford/snap"</a>}},"updates":{"snippets":[{"icon":"DES
CRIPTION","message":"PNEANetMP: Floating point exception (immediate) (#85)"}],"action":{"name":"View Issue","url":"https://github.com/snap-stanford/snap/issues/85"}}}
Hi Rok,
Thanks! One question: is it safe to assume that the methods that are implemented for TNEANetMP are working and I can make multithreaded/simultaneous calls to them? Or is it still too experimental?
Thanks, Guilherme Reis
Hi Guilherme,
TNEANetMP code is experimental at this point. It is primarily
optimized for fast network creation.
Cheers,
Rok
On 09/01/16 07:14, guifereis wrote:
Hi Rok,
Thanks! One question: is it safe to assume that the methods
that are implemented for TNEANetMP are working and I can make
multithreaded/simultaneous calls to them? Or is it still too
experimental?
Thanks,
Guilherme Reis
—
You are receiving this because you commented.
Reply to this email directly, view
it on GitHub, or mute
the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/snap-stanford/snap","title":"snap-stanford/snap","subtitle":"GitHub repository","main_image_url":<a class="moz-txt-link-rfc2396E" href="https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png">"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png"</a>,"avatar_image_url":<a class="moz-txt-link-rfc2396E" href="https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png">"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png"</a>,"action":{"name":"Open in GitHub","url":<a class="moz-txt-link-rfc2396E" href="https://github.com/snap-stanford/snap">"https://github.com/snap-stanford/snap"</a>}},"updates":{"snippets":[{"icon":"PER
SON","message":"@guifereis in #85: Hi Rok,\r\n\r\nThanks! One question: is it safe to assume that the methods that are implemented for TNEANetMP are working and I can make multithreaded/simultaneous calls to them? Or is it still too experimental?\r\n\r\nThanks,\r\nGuilherme Reis"}],"action":{"name":"View Issue","url":"https://github.com/snap-stanford/snap/issues/85#issuecomment-244091773"}}}
Hi,
I am trying to test the new multithreaded PNEANetMP. However, I cannot even add a node. Here is code that reproduces the bug:
the
gg->AddNode(1)
line results in the following error and crash: "Floating point exception (core dumped)".Let me know if I can help with debugging/testing, or if my code does something wrong. Thanks!