Commit d5795912 authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

Fix freeing memory allocated for computations

parent f1d1b932
......@@ -479,7 +479,5 @@ int main(int argc, char* argv[])
}
#endif
release_malloc();
return EXIT_SUCCESS;
}
......@@ -100,7 +100,6 @@ struct computing_functions memset_get_functions();
#include <starpu_mpi.h>
#define init_malloc(_a, _b, _c, _d)
#define release_malloc()
#define get_worker_count starpu_worker_get_count
#define timing_now(var) var = starpu_timing_now()
#define time_type double
......
......@@ -30,11 +30,6 @@ void init_malloc(struct machine_s* machine, int* _numa_nodes_comp, unsigned _nb_
}
}
void release_malloc()
{
free(numa_nodes_comp);
}
int get_numa_node_comp_for_id(int id)
{
if (id >= nb_numa_nodes_comp)
......
......@@ -6,7 +6,6 @@
struct machine_s;
void init_malloc(struct machine_s* machine, int* _numa_nodes_comp, unsigned _nb_numa_nodes_comp, int _memory_comm_numa_node);
void release_malloc();
void* comm_malloc(size_t size);
void* comp_malloc(size_t size);
void* data_malloc(size_t size, int numa_node);
......
......@@ -293,7 +293,7 @@ static void memset_release()
{
for (int i = 0; i < nb_threads; i++)
{
data_free(a[i], array_size*sizeof(MEMSET_TYPE), get_numa_node_comp_for_id(i % machine.nb_numa));
data_free(a[i], array_size*sizeof(MEMSET_TYPE), get_numa_node_comp_for_id(i % params.memory_comp_numa_nodes_nb));
}
free(a);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment