I tried to use numa_alloc_onnode() to allocate 40GB of memory on a 32GB node by running the below code. However it does not report any errors.
a = (int *) numa_alloc_local (sizeof(int) * GB_8 * 5);
if (a == NULL)
printf("a error\n");
for ( i = 0; i <GB_8*5; i++ )
a[i] = (int)i;
printf("a done\n");
This is the specification of my machine. https://i.stack.imgur.com/bM2Gr.png
Can anyone please help explain?