Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is -lnuma and what program uses it for compilation?

I am compiling a message passing program using openmpi with mpicxx on a Linux desktop. My makefile does the following:

mpicxx -c readinp.cpp
mpicxx -o exp_fit driver.cpp readinp.o 

at which point i get the following error:

/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lnuma

My questions are:

what is -lnuma? what is using it? how should i go about linking to it?

like image 927
drjrm3 Avatar asked Jan 30 '12 15:01

drjrm3


2 Answers

Thanks Jonathan Dursi!

On Ubuntu, the package name is libnuma-dev.
apt-get install libnuma-dev

like image 110
aks Avatar answered Oct 07 '22 07:10

aks


The build script can't find the numa library - NUMA (Non Uniform Memory Access). The -l option tells the linker to link the library, but your system ether doesn't have the right one installed or your search path for the linker is incomplete/wrong.

Try querying your package-manager (apt or rpm) for a package libnuma.

like image 33
Mithrandir Avatar answered Oct 07 '22 06:10

Mithrandir