摘要:
#include #include int getMulprocessorCount(){ cudaDeviceProp prop; cudaGetDeviceProperties(&prop,0); return prop.multiProcessorCount;}__constant__ int a[10]={1,2,3,4,5,6,7,8,9};__global__ void add(int *c){ c[1]=a[2];}int main(){ int *c; int h_c[10]; int m... 阅读全文