1、赋值方法
__constant__ char g_chFuncIndex ;
cutilSafeCall( cudaMemcpyToSymbol( "g_chFuncIndex", i_chFuncIndex, sizeof( char ) ) ) ;
2、访问权限
只可以在cuda的__global__ 或者__device__函数中访问,不可以在外部C函数(extern "C" )中使用
1、赋值方法
__constant__ char g_chFuncIndex ;
cutilSafeCall( cudaMemcpyToSymbol( "g_chFuncIndex", i_chFuncIndex, sizeof( char ) ) ) ;
2、访问权限
只可以在cuda的__global__ 或者__device__函数中访问,不可以在外部C函数(extern "C" )中使用