类似于 static 定义
static unsigned long mt[N]; /* the array for the state vector /
static int mti=N+1; / mti==N+1 means mt[N] is not initialized */
位于程序前面 对所有函数都可读写
CUDA中global的全局变量可以在gpu和cpu中共同读写 但是应该怎么定义 呢
类似于 static 定义
static unsigned long mt[N]; /* the array for the state vector /
static int mti=N+1; / mti==N+1 means mt[N] is not initialized */
位于程序前面 对所有函数都可读写
CUDA中global的全局变量可以在gpu和cpu中共同读写 但是应该怎么定义 呢