流水ライン性能簡易テスト
1290 ワード
float
一、PCUbuntu 32ビット
cache mat_mul time is 18511 us
mat_mul time is 16032 us
no waterline time is 13240 us
waterline 4 time is 10281 us
二、HI 3520 Dプレートに
float
# ./test00cache mat_mul time is 305383 usmat_mul time is 317441 usno waterline time is 286198 uswaterline 4 time is 283824 us
int
# ./test00cache mat_mul time is 20517 usmat_mul time is 33066 usno waterline time is 19357 uswaterline 4 time is 29512 us
一、PCUbuntu 32ビット
#include
#include
#include
#include // for gettimeofday()
struct timeval start, end; // define 2 struct timeval variables
long long total_time;
int main()
{
int i,j,k;
int width = 128;
int height = 128;
float *a00=(float*)malloc(128*128*sizeof(float));
float *b00=(float*)malloc(128*128*sizeof(float));
float *c00=(float*)malloc(128*128*sizeof(float));
for(i=0;i
mike@ubuntu:/home/hisi/my_test$ ./test00 cache mat_mul time is 18511 us
mat_mul time is 16032 us
no waterline time is 13240 us
waterline 4 time is 10281 us
二、HI 3520 Dプレートに
float
# ./test00cache mat_mul time is 305383 usmat_mul time is 317441 usno waterline time is 286198 uswaterline 4 time is 283824 us
int
# ./test00cache mat_mul time is 20517 usmat_mul time is 33066 usno waterline time is 19357 uswaterline 4 time is 29512 us