Martin Šošić
unread,Apr 27, 2013, 11:15:02 PM4/27/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ispc-...@googlegroups.com
Hi everybody,
I am new in ispc and I am getting this unusual error, I don't know what to do about it.
Compiler also writes message how I probably found a bug in compiler and should report it.
I don't know what to do about the error and was hoping somebody could help me.
This is the error message:
Ukkonen.ispc:61:6: Error: Assertion failed (ctx.cpp:2875): "pt != NULL || CastType<AtomicType>(valueType) != NULL".
diagRecInfo.P[diagI] = parentInfo;
^^^^^^^^^^^^^^^^^^^^
I attached 2 source files, Ukkonen.ispc(that is where error happens) and Ukkonen_shared.h.
Snap of important code (for those don't want to read source):
// Structures
enum Cell {D, P, Q};
enum Direction {UP, LEFT, UPLEFT, CENTER};
struct ParentInfo {
Cell cell;
Direction direction;
};
struct RecDiagonalC {
int length;
ParentInfo *P, *D, *Q;
};
// main function
export void calcDiagParallel ( /* ... some variables ... */ , uniform RecDiagonalC &diagRecInfo /*output is stored into diagRecInfo*/) {
/* .......
some code
...... */
ParentInfo parentInfo;
foreach (diagI = 0 ... diag.size) {
/* ......
some code
........ */
diagRecInfo.P[diagI] = parentInfo; // This is where error occures, line 61
/* ......
some code
...... */
}
}
Thank you!