nvcc error in cudafe++ nvcc error : 'cudafe++' died due to signal 11 (Invalid memor

When using nvcc to compile the following (pared down test case):

[codebox]template global void Test(T* v)

{

extern __device__ void error(void);

error();

}

[/codebox]

nvcc gives the following error:

nvcc error : ‘cudafe++’ died due to signal 11 (Invalid memory reference)

I’m running the 2.3a of the SDK, 2.3a of the toolkit, and 2.3.1a of the driver on Snow Leopard

Thanks for reporting this; I’ve filed a bug report.

The usage you’ve attempted here is actually illegal. The non-templated version of your code reveals the error:

[codebox]

//template global void foo(void)

global void foo(void)

{

extern device void error(void);

error();

}

[/codebox]

./external_function_call.cu(5): Error: External calls are not supported (found non-inlined call to _Z5errorv)