[f2py] pgf90 and openmp

Frédéric Dubois dubois at lmgc.univ-montp2.fr
Thu Dec 20 18:22:13 EET 2007


hello,
undefined symbol means that a function (or subroutine) is missing when 
you link with f2py.
also i did a grep of the missing routine in my pgi.../lib folder and i 
found that libpgmp contains the missing function.
Now it seems that libnuma.so or libpgnuma.so contain the new missing 
function (it means that you have to add  -lnuma
or -lpgnuma to the f2py line). What these functions are doing ? i don't 
know. Which one is the more suitable ? I don't know ...

regards

Martinho MA wrote:

> hello,
> What do you mean by add external library?
>
> I runned:
> f2py -c Paralelo.f90 -m paralelo --fcompiler=pg --f90flags='-mp'   -lpgmp
>
> And now I get the error:
> <type 'exceptions.ImportError'>: 
> /software/pgi/inst/linux86-64/7.1-2/libso/libpgmp.so: undefined 
> symbol: numa_alloc_local
>
> thanks
> mma
>
> Frédéric Dubois escribió:
>
>> you need to add an external library provided by pgi.
>> libpgmp.a probably also add -lpgmp to your f2py line.
>> regards
>>
>> Martinho MA wrote:
>>
>>> Hello,
>>> I am trying to compile f90 code with openmp:
>>>
>>> f2py -c Paralelo.f90 -m paralelo --fcompiler=pg --f90flags=-mp
>>>
>>> It compiles fine but when I try to import it I get the exception:
>>> <type 'exceptions.ImportError'>: ./paralelo.so: undefined symbol: 
>>> _mp_lcpu
>>>
>>> Can someone help
>>> Thanks
>>> mma
>>>
>>> _______________________________________________
>>> f2py-users mailing list
>>> f2py-users at cens.ioc.ee
>>> http://cens.ioc.ee/mailman/listinfo/f2py-users
>>>
>>>
>>
>>
>
>


-- 
Frédéric Dubois, Eng, PhD
LMGC - UMR CNRS 5508
Université de Montpellier 2, cc 048
Place Eugène Bataillon
34095 Montpellier Cedex 05
Tel 33/0 467144984 - Fax 33/0 467143923
http://www.lmgc.univ-montp2.fr/~dubois/LMGC90




More information about the f2py-users mailing list