Ver código fonte

Always use uint64_t to store FxT buffer size

Related to bc9c90791
Philippe SWARTVAGHER 5 anos atrás
pai
commit
ae226608e1
4 arquivos alterados com 0 adições e 32 exclusões
  1. 0 8
      include/starpu.h
  2. 0 8
      src/common/fxt.c
  3. 0 8
      src/common/fxt.h
  4. 0 8
      src/core/workers.c

+ 0 - 8
include/starpu.h

@@ -406,15 +406,7 @@ struct starpu_conf
 	   to specify a bigger value to avoid any flushing (which
 	   would disturb the trace).
 	*/
-#ifdef HAVE_FUT_SETUP_FLUSH_CALLBACK
-	/**
-	   Support for buffer size > 2 GB was added in FxT at the same
-	   time than fut_setup_flush_callback()
-	*/
 	uint64_t trace_buffer_size;
-#else
-	unsigned trace_buffer_size;
-#endif
 	int global_sched_ctx_min_priority;
 	int global_sched_ctx_max_priority;
 

+ 0 - 8
src/common/fxt.c

@@ -156,15 +156,7 @@ void _starpu_fxt_flush_callback()
 }
 #endif
 
-#ifdef HAVE_FUT_SETUP_FLUSH_CALLBACK
-/**
- * Support for buffer size > 2 GB was added in FxT at the same
- * time than fut_setup_flush_callback()
- */
 void _starpu_fxt_init_profiling(uint64_t trace_buffer_size)
-#else
-void _starpu_fxt_init_profiling(unsigned trace_buffer_size)
-#endif
 {
 	unsigned threadid;
 

+ 0 - 8
src/common/fxt.h

@@ -313,15 +313,7 @@ static inline unsigned long _starpu_fxt_get_submit_order(void)
 long _starpu_gettid(void);
 
 /* Initialize the FxT library. */
-#ifdef HAVE_FUT_SETUP_FLUSH_CALLBACK
-/**
- * Support for buffer size > 2 GB was added in FxT at the same
- * time than fut_setup_flush_callback()
- */
 void _starpu_fxt_init_profiling(uint64_t trace_buffer_size);
-#else
-void _starpu_fxt_init_profiling(unsigned trace_buffer_size);
-#endif
 
 /* Stop the FxT library, and generate the trace file. */
 void _starpu_stop_fxt_profiling(void);

+ 0 - 8
src/core/workers.c

@@ -1142,15 +1142,7 @@ int starpu_conf_init(struct starpu_conf *conf)
 #endif
 
 	/* 64MiB by default */
-#ifdef HAVE_FUT_SETUP_FLUSH_CALLBACK
-	/**
-	* Support for buffer size > 2 GB was added in FxT at the same
-	* time than fut_setup_flush_callback()
-	*/
 	conf->trace_buffer_size = ((uint64_t) starpu_get_env_number_default("STARPU_TRACE_BUFFER_SIZE", 64)) << 20;
-#else
-	conf->trace_buffer_size = starpu_get_env_number_default("STARPU_TRACE_BUFFER_SIZE", 64) << 20;
-#endif
 
 	/* Do not start performance counter collection by default */
 	conf->start_perf_counter_collection = 0;