Wednesday, March 14, 2012

Odd nvcc Error

While working on the STL, I encountered this error from the nvcc compiler:

kernel launches from templates are not allowed in system files

This was caused by including the Thrust headers after the line:

#pragma GCC system_header

I'm not sure why this restriction exists, and I couldn't find any documentation that explains it. I'll keep searching for an explanation and update this post if I find one.

No comments:

Post a Comment