Unable to read binary file!

13 views
Skip to first unread message

Dharini Jaiganesh

unread,
Jul 11, 2016, 12:42:40 PM7/11/16
to cusp-users
Hi,

I am trying to read binary graph files in one of my cusp codes. I used the following lines,

cusp::csr_matrix<int, int, cusp::device_memory> G;

cusp::io::read_binary_file(G, filename);


I get the following error,

terminate called after throwing an instance of 'std::bad_alloc'

  what():  std::bad_alloc

Aborted (core dumped)


Please let me know what does this mean and how do I overcome this. I also tried using coo_matrix format. But still the same error.

The following are the versions of cuda, cusp and thrust.

CUDA   v7.5

Thrust v1.8

Cusp   v0.5


Thanks.

Steven Dalton

unread,
Jul 11, 2016, 12:52:44 PM7/11/16
to cusp-...@googlegroups.com
Hello,
 Can you send me your test file so I can reproduce the error? It may be useful to create an issue on the github repository page so we can track the error.
Steve

--
You received this message because you are subscribed to the Google Groups "cusp-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cusp-users+...@googlegroups.com.
To post to this group, send email to cusp-...@googlegroups.com.
Visit this group at https://groups.google.com/group/cusp-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages