int i;
smpi_host_data_t hdata;
- /* Connect our log channels: that must be done manually under windows */
- /* (should be done only once, not for each process) */
- XBT_LOG_CONNECT(smpi_base, smpi);
- XBT_LOG_CONNECT(smpi_bench, smpi);
- XBT_LOG_CONNECT(smpi_kernel, smpi);
- XBT_LOG_CONNECT(smpi_mpi, smpi);
- XBT_LOG_CONNECT(smpi_receiver, smpi);
- XBT_LOG_CONNECT(smpi_sender, smpi);
- XBT_LOG_CONNECT(smpi_util, smpi);
-
SIMIX_mutex_lock(smpi_global->running_hosts_count_mutex);
smpi_global->running_hosts_count++;
SIMIX_mutex_unlock(smpi_global->running_hosts_count_mutex);
int size = SIMIX_host_get_number();
- smpi_global = xbt_new(s_smpi_global_t, 1);
+ /* Connect our log channels: that must be done manually under windows */
+ /* (should be done only once, not for each process) */
+ #ifdef XBT_LOG_CONNECT
+ XBT_LOG_CONNECT(smpi_base, smpi);
+ XBT_LOG_CONNECT(smpi_bench, smpi);
+ XBT_LOG_CONNECT(smpi_kernel, smpi);
+ XBT_LOG_CONNECT(smpi_mpi, smpi);
+ XBT_LOG_CONNECT(smpi_receiver, smpi);
+ XBT_LOG_CONNECT(smpi_sender, smpi);
+ XBT_LOG_CONNECT(smpi_util, smpi);
+ #endif
+ smpi_global = xbt_new(s_smpi_global_t, 1);
// config variable
smpi_global->reference_speed = SMPI_DEFAULT_SPEED;