'exp' support in bambu

28 views
Skip to first unread message

nikhil ghanathe

unread,
Jul 13, 2020, 3:04:32 AM7/13/20
to PandA project discussions and questions


Hello,
I am trying to synthesize a piece of code that has the exponentiation function (exp).
However, I get the following error when I synthesize it. 

Operation for which does not exist a functional unit in the resource library: exp in vertex: temp_26640_26658 with vertex type: REAL and vertex prec: 64 64
error -> Vertices not completely allocated

I am assuming that the message is trying to convey that a functional unit for 'exp' does not exist in the bambu library. Am I right?
If yes, how do I implement the exp function?

Thanks 

Fabrizio Ferrandi

unread,
Jul 13, 2020, 3:06:52 AM7/13/20
to PandA project discussions and questions
Hello,

bambu follows the same conventions used by gcc and clang. In case you need libm functions such as exp, you need to pass the -lm options.
Once you pass this option bambu will link with the single and double precision libm functions.
Cheers,
Fabrizio
Reply all
Reply to author
Forward
0 new messages