2
方面聲明裝置常數當我嘗試在其他常數來定義一個常數,都存儲在設備常量內存,如:在另一個常量
__device__ __constant__ float x=0.1;
__device__ __constant__ float y=2*x;
我得到的錯誤:
error: can't generate code for non empty constructors or destructors on device
任何提示?