|
@@ -597,16 +597,6 @@ static struct starpu_perfmodel_per_arch*** initialize_arch_model(int maxdevid, u
|
|
|
return arch_model;
|
|
|
}
|
|
|
|
|
|
-void initialize_model(struct starpu_perfmodel *model)
|
|
|
-{
|
|
|
- struct _starpu_machine_config *conf = _starpu_get_machine_config();
|
|
|
- initialize_model_without_conf(model,1,&conf->topology.ncpus,
|
|
|
- conf->topology.ncudagpus,NULL,
|
|
|
- conf->topology.nopenclgpus,NULL,
|
|
|
- conf->topology.nmicdevices,conf->topology.nmiccores,
|
|
|
- conf->topology.nsccdevices,NULL);
|
|
|
-}
|
|
|
-
|
|
|
void initialize_model_without_conf(struct starpu_perfmodel* model, int dev_cpu, unsigned* core_cpu, int dev_cuda, unsigned* core_cuda, int dev_opencl, unsigned* core_opencl, int dev_mic, unsigned* core_mic, int dev_scc, unsigned* core_scc)
|
|
|
{
|
|
|
model->per_arch = malloc(sizeof(*model->per_arch)*(STARPU_NARCH));
|
|
@@ -618,6 +608,16 @@ void initialize_model_without_conf(struct starpu_perfmodel* model, int dev_cpu,
|
|
|
model->per_arch[STARPU_SCC_WORKER] = initialize_arch_model(dev_scc,core_scc);
|
|
|
}
|
|
|
|
|
|
+void initialize_model(struct starpu_perfmodel *model)
|
|
|
+{
|
|
|
+ struct _starpu_machine_config *conf = _starpu_get_machine_config();
|
|
|
+ initialize_model_without_conf(model,1,&conf->topology.ncpus,
|
|
|
+ conf->topology.ncudagpus,NULL,
|
|
|
+ conf->topology.nopenclgpus,NULL,
|
|
|
+ conf->topology.nmicdevices,conf->topology.nmiccores,
|
|
|
+ conf->topology.nsccdevices,NULL);
|
|
|
+}
|
|
|
+
|
|
|
static void get_model_debug_path(struct starpu_perfmodel *model, const char *arch, char *path, size_t maxlen)
|
|
|
{
|
|
|
STARPU_ASSERT(path);
|