2>Signal: caught in Extended Block Optimizer - vectors phase.
2>Error: Signal caught in phase Extended Block Optimizer - vectors – processing aborted
2>nvopencc ERROR: C:\CUDA\bin/…/open64/lib//be.exe returned non-zero status 3
I am getting this error when compiling. I don’t have an exact line that causes it, but this first happened when I started introducing structs into my .cu files. Any clue?
Unfortunately I cannot - this code is proprietary. I’ve been working with some folks at NVIDIA to get a secure private intranet set up for my company where I could submit secure code samples, but it has been a pretty slow process.
The gist of my problem was when I allocated an array of structs (simple 2-int structs, at that). Referencing this array through a macro caused the error. The macro simply locates the correct element, something to the effect of:
struct whatever {
int x;
int y;
}
// ie the macro helps locate the correct array element in some array
#define some_macro(array,i,j,k) (array)[((i)*2)+(j)*(k))]
struct whatever my_struct_array[10];
some_macro(some_int_array,1,2,my_struct_array[threadIdx.x].y) = 10; // causes compiler error