Commit 9290c8ed authored by perdacherMartin's avatar perdacherMartin

removed test environment

parent 4db7c206
......@@ -30,6 +30,7 @@ Finally you can run BlasMeans with its parameters, and with random generated dat
* d (dimensionality of the data)
* t (number of threads)
Example:
```
./blasMeans -n 64 -k 40 -d 20 -t 4
```
......@@ -33,40 +33,13 @@ int main(int argc, char** argv) {
members = (long*) ddr_alloc(sizeof (long) * n);
x = (double*) ddr_alloc(sizeof (double)*n * d);
random_init(x,n,d);
for ( int i = 0 ; i < 2 ; i++ ){
for ( int j = 0 ; j < D ; j++ ){
printf("%f, ", x[i*D + j]);
}
printf("\n");
}
char test_file[] = "matrix.txt";
// save_binary_file(x,n,d,test_file);
save_text_file(x,n,d,test_file);
memset(x, 0, sizeof(double) * n * d );
// read_file(x,n,d,test_file, true);
read_file(x,n,d,test_file, false);
printf("\n\n\n\n");
for ( int i = 0 ; i < 2 ; i++ ){
for ( int j = 0 ; j < D ; j++ ){
printf("%f, ", x[i*D + j]);
}
printf("\n");
if ( filename == "" ){
random_init(x,n,d);
}else{
read_file(x, n, d, filename, isBinary);
}
// if ( filename == "" ){
// random_init(x,n,d);
// }else{
// read_file(x, n, d, filename, isBinary);
// }
//
// elapsed = blasMeans( members, x, d, k, n, threads);
elapsed = blasMeans( members, x, d, k, n, threads);
printf("%d; %d; %d; %f\n", n,d,k,elapsed);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment