Commit d667c528 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] Use "all" instead of "0" for default numa

libnuma will sometimes fail for our test cases if NUMA node 0 is not
available on the system. Use "all" instead as the default, as it will
always work.
parent 58cdd50e
......@@ -27,8 +27,8 @@ int main(int argc, char *argv[])
*/
struct aml_area slow, fast;
int type = AML_AREA_TYPE_REGULAR;
assert(!aml_area_from_nodestring(&slow, type, "0"));
assert(!aml_area_from_nodestring(&fast, type, "0"));
assert(!aml_area_from_nodestring(&slow, type, "all"));
assert(!aml_area_from_nodestring(&fast, type, "all"));
struct aml_dma dma;
assert(!aml_dma_init(&dma, 0));
......
......@@ -59,8 +59,8 @@ int main(int argc, char *argv[])
/* we want to back our array on the slow node and use the fast node as
* a faster buffer.
*/
assert(!aml_area_from_nodestring(&slow, AML_AREA_TYPE_REGULAR, "0"));
assert(!aml_area_from_nodestring(&fast, AML_AREA_TYPE_REGULAR, "0"));
assert(!aml_area_from_nodestring(&slow, AML_AREA_TYPE_REGULAR, "all"));
assert(!aml_area_from_nodestring(&fast, AML_AREA_TYPE_REGULAR, "all"));
struct aml_dma dma;
assert(!aml_dma_init(&dma, 0));
......
......@@ -381,6 +381,11 @@ main(int argc, char *argv[])
checkSTREAMresults();
printf(HLINE);
aml_area_free(&area, a);
aml_area_free(&area, b);
aml_area_free(&area, c);
aml_area_destroy(&area);
aml_finalize();
return 0;
}
......
Markdown is supported
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