|
@@ -17,6 +17,7 @@
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
#include <stdbool.h>
|
|
|
#include <starpu.h>
|
|
#include <starpu.h>
|
|
|
|
|
+#include <limits.h>
|
|
|
#include "../helper.h"
|
|
#include "../helper.h"
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -68,7 +69,6 @@ static float power(float frequency)
|
|
|
return power_min + alpha * ( frequency*frequency*frequency - freq_min3);
|
|
return power_min + alpha * ( frequency*frequency*frequency - freq_min3);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/*
|
|
/*
|
|
|
* This returns the frequency of the given worker and implementation in MHz.
|
|
* This returns the frequency of the given worker and implementation in MHz.
|
|
|
* This is where we can tune either a given number of cores at a low frequency,
|
|
* This is where we can tune either a given number of cores at a low frequency,
|
|
@@ -276,8 +276,8 @@ CODELET(potrf, 1, STARPU_RW)
|
|
|
CODELET(trsm, 2, STARPU_R, STARPU_RW)
|
|
CODELET(trsm, 2, STARPU_R, STARPU_RW)
|
|
|
CODELET(gemm, 3, STARPU_R, STARPU_R, STARPU_RW)
|
|
CODELET(gemm, 3, STARPU_R, STARPU_R, STARPU_RW)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-int main(int argc, char *argv[]) {
|
|
|
|
|
|
|
+int main(int argc, char *argv[])
|
|
|
|
|
+{
|
|
|
/* Initialize environment variables */
|
|
/* Initialize environment variables */
|
|
|
|
|
|
|
|
if (!getenv("STARPU_IDLE_POWER"))
|
|
if (!getenv("STARPU_IDLE_POWER"))
|
|
@@ -333,7 +333,6 @@ int main(int argc, char *argv[]) {
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/* Give parameter summary to user */
|
|
/* Give parameter summary to user */
|
|
|
|
|
|
|
|
printf("freqs (MHz):\n");
|
|
printf("freqs (MHz):\n");
|