From ddae68a9d73e8c00f9702de9da881f81eee1cde6 Mon Sep 17 00:00:00 2001 From: navarro Date: Tue, 23 Oct 2012 17:45:18 +0200 Subject: [PATCH] Fix compilation error since TAG tutorial --- include/simgrid/platf.h | 7 +++++-- src/surf/sg_platf.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/simgrid/platf.h b/include/simgrid/platf.h index d044e358b2..24a5533973 100644 --- a/include/simgrid/platf.h +++ b/include/simgrid/platf.h @@ -297,8 +297,6 @@ typedef struct s_sg_platf_gpu_cbarg { #define SG_PLATF_GPU_INITIALIZER {NULL} -XBT_PUBLIC(void) sg_platf_new_gpu (sg_platf_gpu_cbarg_t gpu); // Add an gpu - /* ***************************************** */ XBT_PUBLIC(void) sg_platf_begin(void); // Start a new platform @@ -332,6 +330,11 @@ XBT_PUBLIC(void) sg_platf_new_mount(sg_platf_mount_cbarg_t mount); XBT_PUBLIC(void) sg_platf_new_process(sg_platf_process_cbarg_t process); +/* ***************************************** */ +/* TUTORIAL: New TAG */ +XBT_PUBLIC(void) sg_platf_new_gpu(sg_platf_gpu_cbarg_t gpu); +/* ***************************************** */ + // Add route and Asroute without xml file with those functions XBT_PUBLIC(void) sg_platf_route_begin (sg_platf_route_cbarg_t route); // Initialize route XBT_PUBLIC(void) sg_platf_route_end (sg_platf_route_cbarg_t route); // Finalize and add a route diff --git a/src/surf/sg_platf.c b/src/surf/sg_platf.c index e56cf6b0f7..0af5c72f57 100644 --- a/src/surf/sg_platf.c +++ b/src/surf/sg_platf.c @@ -336,7 +336,7 @@ void sg_platf_new_AS_end() { /* ***************************************** */ /* TUTORIAL: New TAG */ -void sg_platf_new_gpu_end() { +void sg_platf_new_gpu(sg_platf_gpu_cbarg_t gpu) { unsigned int iterator; void_f_void_t fun; xbt_dynar_foreach(sg_platf_gpu_cb_list, iterator, fun) { -- 2.20.1