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

Add Implementation line to phpinfo() output #44

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

TysonAndre
Copy link
Collaborator

This can be used to see the simdjson implementation chosen when benchmarking or
validating an installation is using the SIMD instructions that are expected.
E.g. Implementation => Intel/AMD AVX2

This can be used to see the simdjson implementation chosen when benchmarking or
validating an installation.
E.g. `Implementation => Intel/AMD AVX2`
@crazyxman crazyxman merged commit 46d3432 into crazyxman:master Aug 18, 2022
@vassil-velichkov
Copy link

This commit breaks the compilation from source:
php_simdjson.cpp:250:61: error: ‘active_implementation’ is not a member of ‘simdjson’; did you mean ‘get_active_implementation’?
250 | php_info_print_table_row(2, "Implementation", simdjson::active_implementation->description().c_str());

@@ -220,6 +220,8 @@ PHP_MINFO_FUNCTION (simdjson) {

php_info_print_table_row(2, "Version", PHP_SIMDJSON_VERSION);
php_info_print_table_row(2, "Support", SIMDJSON_SUPPORT_URL);
php_info_print_table_row(2, "Implementation", simdjson::active_implementation->description().c_str());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This added line breaks the compilation from source (Ubuntu 22.04.5 / GCC 11.2.0):
php_simdjson.cpp:250:61: error: ‘active_implementation’ is not a member of ‘simdjson’; did you mean ‘get_active_implementation’?
250 | php_info_print_table_row(2, "Implementation", simdjson::active_implementation->description().c_str());

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

Successfully merging this pull request may close these issues.

None yet

3 participants