Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用模板化方法以及设备选项,我希望使用 __forceinline 选项来确保方法实际上是内联的。然而,结果我得到了错误——不管这些选项的顺序是什么。我的代码:
template<int Begin, int End> struct Unroller { __device__ __forceinline static void step(...) { ...
forceinline关键字前后都需要双下划线
像这样:__forceinline__
__forceinline__