X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6135d964e2f6309e0c3e1608c84faa8264553eba..a952e7b8f580680c94a08ddb1ffbc76c56ac4bc8:/src/surf/surfxml_parseplatf.c diff --git a/src/surf/surfxml_parseplatf.c b/src/surf/surfxml_parseplatf.c index b86540c0ca..b3fdf29e52 100644 --- a/src/surf/surfxml_parseplatf.c +++ b/src/surf/surfxml_parseplatf.c @@ -25,8 +25,8 @@ int surfxml_bufferstack_size = 2048; static char *old_buff = NULL; -unsigned int surfxml_buffer_stack_stack_ptr; -unsigned int surfxml_buffer_stack_stack[1024]; +XBT_IMPORT_NO_EXPORT(unsigned int) surfxml_buffer_stack_stack_ptr; +XBT_IMPORT_NO_EXPORT(unsigned int) surfxml_buffer_stack_stack[1024]; void surfxml_bufferstack_push(int new) @@ -60,6 +60,16 @@ xbt_dict_t trace_connect_list_link_avail = NULL; xbt_dict_t trace_connect_list_bandwidth = NULL; xbt_dict_t trace_connect_list_latency = NULL; +/* ********************************************* */ +/* TUTORIAL: New TAG */ +/* This function should be in gpu.c */ +/* because sg_platf_gpu_add_cb take a staic fct */ +XBT_PUBLIC(void) gpu_register_callbacks(void){ + sg_platf_gpu_add_cb(NULL); +} +/* ***************************************** */ + + /* This function acts as a main in the parsing area. */ void parse_platform_file(const char *file) { @@ -71,6 +81,11 @@ void parse_platform_file(const char *file) storage_register_callbacks(); routing_register_callbacks(); + /* ***************************************** */ + /* TUTORIAL: New TAG */ + gpu_register_callbacks(); + /* ***************************************** */ + /* init the flex parser */ surfxml_buffer_stack_stack_ptr = 1; surfxml_buffer_stack_stack[0] = 0;