compiling error

114 views
Skip to first unread message

Lifeng Jin

unread,
Jul 21, 2016, 10:53:21 PM7/21/16
to cusp-users
Hi,

I encountered a compiler error as follows:

/usr/local/cuda/bin/../include/cusp/system/cuda/detail/graph/b40c/graph/bfs/contract_expand_atomic/../two_phase/expand_atomic/cta.cuh(324): internal error: assertion failed: gen_expr: bad expr node kind (/Volumes/dvs/p4/build/sw/rel/gpu_drv/r352/r352_00/drivers/compiler/edg/EDG_4.9/src/cp_gen_be.c, line 14135)

1 catastrophic error detected in the compilation of "/var/folders/bq/02vpb7v14q589sb3mq27kl8w0000gn/T//tmpxft_0000ad0e_00000000-5_HmmSampler.cpp4.ii".

Compilation aborted.

nvcc error  
: 'cudafe++' died due to signal 6


I wonder if anyone has an idea what is going on? There is no error message for lines in my script but I am also looking for anything that could lead to an error.

Thanks,

Lifeng

Lifeng Jin

unread,
Jul 22, 2016, 12:37:19 AM7/22/16
to cusp-users
Answering my own question here:

By inspecting the line where the error is said to be generated by, I found that it was like this:

while (__any(tile->row_length[LOAD][VEC] >= KernelPolicy::WARP_GATHER_THRESHOLD)) {

A while back when I was compiling some other code, a different error popped up in some other files saying that "__any is ambiguous" or something like that, and somewhere on the Internet the solution is said to be adding '::' to '__any' and potentially '__all'. It worked then and it works now. After adding '::' like this:

while (::__any(tile->row_length[LOAD][VEC] >= KernelPolicy::WARP_GATHER_THRESHOLD)) {

the error I posted is gone and the code compiles beautifully.




在 2016年7月21日星期四 UTC-4下午10:53:21,Lifeng Jin写道:

Steven Dalton

unread,
Jul 22, 2016, 11:40:00 AM7/22/16
to cusp-...@googlegroups.com
Great. What OS, compiler, toolkit are you using? I haven't encountered this 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.

Lifeng Jin

unread,
Jul 23, 2016, 12:56:40 AM7/23/16
to cusp-users
It is MacOS 10.11.5. The compiler could be clang 7.3(? the newest version) but I am not sure. CUDA is 7.5. 

I found the :: solution here : https://github.com/gunrock/gunrock/issues/22 because of that __any is ambiguous error.

在 2016年7月22日星期五 UTC-4上午11:40:00,Steve写道:
Reply all
Reply to author
Forward
0 new messages