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

[Performance] Check whether xsimd is properly integrated #1

Closed
Ivorforce opened this issue Sep 3, 2024 · 2 comments
Closed

[Performance] Check whether xsimd is properly integrated #1

Ivorforce opened this issue Sep 3, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Ivorforce
Copy link
Owner

Ivorforce commented Sep 3, 2024

xsimd is compiled along xtensor, but i have not seen substantial speed improvements, whether it is enabled or not. Are simd operations actually run yet?

A former SIMD test project supposedly achieved up to 300x speed improvements over native Godot. While Godot speeds might have improved since then, this would be a great horizon to achieve.

@Ivorforce Ivorforce added the help wanted Extra attention is needed label Sep 3, 2024
@Ivorforce Ivorforce changed the title [Performance] xsimd is compiled, but i have not seen substantial speed improvements. Are simd operations actually run? [Performance] Check whether xsimd is properly integrated Sep 4, 2024
@Ivorforce
Copy link
Owner Author

I have achieved substantial speedup through f7ff3f2. I now think it more likely that SIMD is actually running, but we still need the test.

@Ivorforce
Copy link
Owner Author

Ivorforce commented Oct 4, 2024

I think I have gathered enough evidence to conclude xsimd is properly integrated:

  1. xtensor fails if XTENSOR_USE_XSIMD is defined but xsimd not linked.
  2. SIMD- related cpp defines are properly defined.
  3. When building with march=native, I can achieve ~2x improvements for specific types of operations (up to 550x improvement over GDScript total).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant