Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmarking math functions #42

Open
cansudemirkiran opened this issue Apr 8, 2021 · 2 comments
Open

Benchmarking math functions #42

cansudemirkiran opened this issue Apr 8, 2021 · 2 comments

Comments

@cansudemirkiran
Copy link

Hi,
Is Aladdin not supporting external library functions like <math.h>? I tried running exp, it can compile when I add the -lm flag to the makefile and creates a trace, so I saw this output "dynamic_trace.gz: Stopping logging at inst 443." but when I ran Aladdin, it doesn't show any computation/cycle count and reaches the end of the trace immediately. Do you have a suggestion to solve the issue? Thanks.

@xyzsam
Copy link
Member

xyzsam commented Apr 8, 2021

LLVM-Tracer has a list of intrinsic math functions and other functions for which it will not trace, but instead will emit a special math opcode (code). It can't trace into them by definition since the tracer doesn't have access to the source code, so they get modeled specially as a black box operation instead. What math function were you using and having difficulty with?

@cansudemirkiran
Copy link
Author

Thanks for the quick response. I see, I want to use "exp" and "sqrt".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants