Hi all,
I am new to MKL.
I want to know whether MKL can accelerate large matrix addition calculation.
It tooks me 20ms now. But in my application. I need it finished in 2ms!
short* a = new short[4000*3000];
short* b = new short[4000*3000];
short* c = new short[4000*3000];
clock_t cstart, cend;
double spend;
cstart = clock();
for(int i = 0 ; i < 1000;++i){
for(int x = 0 ; x < 4000*3000;++x){
short value = a[x] * 3000 + b[x];
c[x] = value;
}
}
cend = clock();
spend = ((double)(cend-cstart)) / (double)CLOCKS_PER_SEC*1000/1000;
printf("spend: %f\\n(ms)", spend);
return 0;
Thanks!
superZZ



