diff --git a/runtime/starpu/include/runtime_codelet_profile.h b/runtime/starpu/include/runtime_codelet_profile.h
index 67942fc015404a082c9a99596721136f43a1cc1d..e195b5d8f3a932bd1cbad08ec460cdd425c87bf4 100644
--- a/runtime/starpu/include/runtime_codelet_profile.h
+++ b/runtime/starpu/include/runtime_codelet_profile.h
@@ -28,6 +28,8 @@
 #ifndef __CODELET_PROFILE_H__
 #define __CODELET_PROFILE_H__
 
+#include <math.h>
+
 #define CHAMELEON_CL_CB(name, _m, _n, _k, _nflops)			\
     static measure_t name##_perf[STARPU_NMAXWORKERS];                                          \
     void cl_##name##_callback()                                                                \