From ea4218b66cc4868680e9395a530d19b001c54cab Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Tue, 11 Mar 2025 11:35:45 +0100 Subject: [PATCH] starpu: remove deprecated and incomplete code to switch to/from fake models --- runtime/starpu/include/runtime_codelet_profile.h | 1 - runtime/starpu/include/runtime_codelets.h | 12 ------------ runtime/starpu/include/runtime_profiling.h | 10 ---------- 3 files changed, 23 deletions(-) diff --git a/runtime/starpu/include/runtime_codelet_profile.h b/runtime/starpu/include/runtime_codelet_profile.h index 361aeeb75..eac734b1f 100644 --- a/runtime/starpu/include/runtime_codelet_profile.h +++ b/runtime/starpu/include/runtime_codelet_profile.h @@ -73,7 +73,6 @@ #define CHAMELEON_CL_CB_HEADER(name) \ extern struct starpu_perfmodel*cl_##name##_save; \ - extern struct starpu_perfmodel cl_##name##_fake; \ void cl_##name##_callback(); \ void profiling_display_##name##_info(void) diff --git a/runtime/starpu/include/runtime_codelets.h b/runtime/starpu/include/runtime_codelets.h index e274d643a..42f97ef08 100644 --- a/runtime/starpu/include/runtime_codelets.h +++ b/runtime/starpu/include/runtime_codelets.h @@ -64,11 +64,6 @@ #endif #define CODELETS_ALL(cl_name, cpu_func_name, gpu_func_name, _original_location_, gpu_flags) \ - struct starpu_perfmodel cl_##cl_name##_fake = { \ - .type = STARPU_HISTORY_BASED, \ - .symbol = "fake_"#cl_name \ - }; \ - \ struct starpu_perfmodel cl_##cl_name##_model = { \ .type = STARPU_HISTORY_BASED, \ .symbol = ""#cl_name \ @@ -92,11 +87,6 @@ void cl_##cl_name##_restore_where(void) \ { \ cl_##cl_name.where = (_original_location_); \ - } \ - \ - void cl_##cl_name##_restore_model(void) \ - { \ - cl_##cl_name.model = &cl_##cl_name##_model; \ } #if defined(CHAMELEON_SIMULATION) @@ -117,8 +107,6 @@ #define CODELETS_ALL_HEADER(name) \ CHAMELEON_CL_CB_HEADER(name); \ - void cl_##name##_load_fake_model(void); \ - void cl_##name##_restore_model(void); \ extern struct starpu_codelet cl_##name; \ void cl_##name##_restrict_where(uint32_t where); \ void cl_##name##_restore_where(void) diff --git a/runtime/starpu/include/runtime_profiling.h b/runtime/starpu/include/runtime_profiling.h index e366c620c..dd71ca13f 100644 --- a/runtime/starpu/include/runtime_profiling.h +++ b/runtime/starpu/include/runtime_profiling.h @@ -43,14 +43,4 @@ void RUNTIME_profiling_cdisplay_all(void); void RUNTIME_profiling_ddisplay_all(void); void RUNTIME_profiling_sdisplay_all(void); -void CHAMELEON_zload_FakeModel(); -void CHAMELEON_cload_FakeModel(); -void CHAMELEON_dload_FakeModel(); -void CHAMELEON_sload_FakeModel(); - -void CHAMELEON_zrestore_Model(); -void CHAMELEON_crestore_Model(); -void CHAMELEON_drestore_Model(); -void CHAMELEON_srestore_Model(); - #endif /* _runtime_profiling_h_ */ -- GitLab