|
@@ -589,17 +589,17 @@ int starpu_conf_init(struct starpu_conf *conf)
|
|
|
#if defined(STARPU_DISABLE_ASYNCHRONOUS_CUDA_COPY)
|
|
|
conf->disable_asynchronous_cuda_copy = 1;
|
|
|
#else
|
|
|
- conf->disable_cuda_asynchronous_copy = starpu_get_env_number("STARPU_DISABLE_CUDA_ASYNCHRONOUS_COPY");
|
|
|
- if (conf->disable_cuda_asynchronous_copy == -1)
|
|
|
- conf->disable_cuda_asynchronous_copy = 0;
|
|
|
+ conf->disable_asynchronous_cuda_copy = starpu_get_env_number("STARPU_DISABLE_ASYNCHRONOUS_CUDA_COPY");
|
|
|
+ if (conf->disable_asynchronous_cuda_copy == -1)
|
|
|
+ conf->disable_asynchronous_cuda_copy = 0;
|
|
|
#endif
|
|
|
|
|
|
#if defined(STARPU_DISABLE_ASYNCHRONOUS_OPENCL_COPY)
|
|
|
conf->disable_asynchronous_opencl_copy = 1;
|
|
|
#else
|
|
|
- conf->disable_opencl_asynchronous_copy = starpu_get_env_number("STARPU_DISABLE_OPENCL_ASYNCHRONOUS_COPY");
|
|
|
- if (conf->disable_opencl_asynchronous_copy == -1)
|
|
|
- conf->disable_opencl_asynchronous_copy = 0;
|
|
|
+ conf->disable_asynchronous_opencl_copy = starpu_get_env_number("STARPU_DISABLE_ASYNCHRONOUS_OPENCL_COPY");
|
|
|
+ if (conf->disable_asynchronous_opencl_copy == -1)
|
|
|
+ conf->disable_asynchronous_opencl_copy = 0;
|
|
|
#endif
|
|
|
|
|
|
return 0;
|
|
@@ -632,8 +632,8 @@ static void _starpu_conf_check_environment(struct starpu_conf *conf)
|
|
|
_starpu_conf_set_value_against_environment("STARPU_BUS_CALIBRATE", &conf->bus_calibrate);
|
|
|
_starpu_conf_set_value_against_environment("STARPU_SINGLE_COMBINED_WORKER", &conf->single_combined_worker);
|
|
|
_starpu_conf_set_value_against_environment("STARPU_DISABLE_ASYNCHRONOUS_COPY", &conf->disable_asynchronous_copy);
|
|
|
- _starpu_conf_set_value_against_environment("STARPU_DISABLE_CUDA_ASYNCHRONOUS_COPY", &conf->disable_cuda_asynchronous_copy);
|
|
|
- _starpu_conf_set_value_against_environment("STARPU_DISABLE_OPENCL_ASYNCHRONOUS_COPY", &conf->disable_opencl_asynchronous_copy);
|
|
|
+ _starpu_conf_set_value_against_environment("STARPU_DISABLE_ASYNCHRONOUS_CUDA_COPY", &conf->disable_asynchronous_cuda_copy);
|
|
|
+ _starpu_conf_set_value_against_environment("STARPU_DISABLE_ASYNCHRONOUS_OPENCL_COPY", &conf->disable_asynchronous_opencl_copy);
|
|
|
}
|
|
|
|
|
|
int starpu_init(struct starpu_conf *user_conf)
|
|
@@ -989,12 +989,12 @@ int starpu_asynchronous_copy_disabled(void)
|
|
|
|
|
|
int starpu_asynchronous_cuda_copy_disabled(void)
|
|
|
{
|
|
|
- return config.conf->disable_cuda_asynchronous_copy;
|
|
|
+ return config.conf->disable_asynchronous_cuda_copy;
|
|
|
}
|
|
|
|
|
|
int starpu_asynchronous_opencl_copy_disabled(void)
|
|
|
{
|
|
|
- return config.conf->disable_opencl_asynchronous_copy;
|
|
|
+ return config.conf->disable_asynchronous_opencl_copy;
|
|
|
}
|
|
|
|
|
|
/* When analyzing performance, it is useful to see what is the processing unit
|