11 Nov 2011 11:35
libnuma: Problem with static library
Almaz Mirgasimov <mirgasimov.almaz <at> gmail.com>
2011-11-11 10:35:42 GMT
2011-11-11 10:35:42 GMT
Hi all, I have some problem when running my program statically linked with libnuma. When I try to run it I get following error message request to allocate mask for invalid number; abort I think the reason for such behavior is not initialized 'cpumask_sz', because 'numa_init' was not called automatically. To solve this problem I slightly patched numactl sources and called 'numa_init' in my program manually. But is there any better way? To link statically I passed '-Wl,-Bstatic -lnuma' to 'ld' linker. My numactl version is 2.0.7 Best regards Almaz Mirgasimov
RSS Feed