|
@@ -7,15 +7,15 @@ typedef struct {
|
|
|
char **argv;
|
|
|
} params;
|
|
|
|
|
|
-#define NSAMPLES 10
|
|
|
+#define NSAMPLES 1
|
|
|
struct starpu_sched_ctx sched_ctx;
|
|
|
struct starpu_sched_ctx sched_ctx2;
|
|
|
|
|
|
void* func_cholesky(void *val){
|
|
|
params *p = (params*)val;
|
|
|
|
|
|
- int procs[] = {1, 2, 3};
|
|
|
- starpu_create_sched_ctx(&sched_ctx, "heft", procs, 3, "cholesky");
|
|
|
+ int procs[] = {1, 2, 3, 4, 5, 6};
|
|
|
+ starpu_create_sched_ctx(&sched_ctx, "heft", procs, 6, "cholesky");
|
|
|
|
|
|
int i;
|
|
|
double *flops = (double*)malloc(sizeof(double));
|
|
@@ -32,8 +32,8 @@ void* func_cholesky(void *val){
|
|
|
void* func_cholesky2(void *val){
|
|
|
params *p = (params*)val;
|
|
|
|
|
|
- int procs[] = {0, 4, 5, 6, 7, 8, 9, 10, 11};
|
|
|
- starpu_create_sched_ctx(&sched_ctx2, "heft", procs, 9, "cholesky");
|
|
|
+ int procs[] = {0, 7, 8, 9, 10, 11};
|
|
|
+ starpu_create_sched_ctx(&sched_ctx2, "heft", procs, 6, "cholesky");
|
|
|
|
|
|
int i;
|
|
|
double *flops = (double*)malloc(sizeof(double));
|
|
@@ -106,15 +106,15 @@ int main(int argc, char **argv)
|
|
|
starpu_helper_cublas_shutdown();
|
|
|
starpu_shutdown();
|
|
|
|
|
|
- starpu_init(NULL);
|
|
|
- starpu_helper_cublas_init();
|
|
|
+ /* starpu_init(NULL); */
|
|
|
+ /* starpu_helper_cublas_init(); */
|
|
|
|
|
|
- void *gflops_cholesky3 = func_cholesky3(&p);
|
|
|
+ /* void *gflops_cholesky3 = func_cholesky3(&p); */
|
|
|
|
|
|
- starpu_helper_cublas_shutdown();
|
|
|
- starpu_shutdown();
|
|
|
+ /* starpu_helper_cublas_shutdown(); */
|
|
|
+ /* starpu_shutdown(); */
|
|
|
|
|
|
- printf("%2.2f %2.2f %2.2f\n", *((double*)gflops_cholesky1), *((double*)gflops_cholesky2), *((double*)gflops_cholesky3));
|
|
|
+ /* printf("%2.2f %2.2f %2.2f\n", *((double*)gflops_cholesky1), *((double*)gflops_cholesky2), *((double*)gflops_cholesky3)); */
|
|
|
|
|
|
return 0;
|
|
|
}
|