-
Notifications
You must be signed in to change notification settings - Fork 6
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
Pass XSMM runner lib to MLIR execution engine #147
Conversation
Manually finds and passes XSMM runner library to the MLIR JIT engine to resolve missing TPP xsmm_* symbols when executing from Python. Works only for Linux currently.
Still a bit hacky but the same lib finding mechanism seems to be used for OV plugins. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Later this could be moved to some sys library, but it should be fine for now, thanks!
Fails in both C++ and Python with:
|
This reverts commit a510e01.
static std::string get_xsmm_runner_path() { | ||
#if defined(__APPLE__) || defined(__linux__) || defined(__EMSCRIPTEN__) | ||
// TODO: Add multiplatform shared library search support. | ||
Dl_info info; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adam-smnk, it fails to compile without TPP_MLIR
. Should be under #ifdef TPP_MLIR
as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point
Manually finds and passes XSMM runner library to the MLIR JIT engine to resolve missing TPP xsmm_* symbols when executing from Python.
Works only for Linux currently.
Tested with: