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

Brunel HH Example behaves differently with Apple Clang. #2431

Open
thorstenhater opened this issue Jan 6, 2025 · 1 comment · May be fixed by #2434
Open

Brunel HH Example behaves differently with Apple Clang. #2431

thorstenhater opened this issue Jan 6, 2025 · 1 comment · May be fixed by #2434
Labels

Comments

@thorstenhater
Copy link
Contributor

As seen during #2430
the HH-Brunel network example exhibits a (small) divergence in spike counts
when compiled with Apple Clang. A potential explanation might be this observation

https://stackoverflow.com/questions/76407947/trivial-c-program-yields-different-result-in-clang-macos-arm64-and-clang-macos-x

but we need some more investigation.

@thorstenhater thorstenhater changed the title Brunel HH Example behaves differenty with Apple Clang. Brunel HH Example behaves differently with Apple Clang. Jan 6, 2025
@thorstenhater thorstenhater pinned this issue Jan 6, 2025
@thorstenhater
Copy link
Contributor Author

So, some investigation notes:

  • HH produces a bitwise-identical voltage trace across Clang, AClang, GCC
  • This remains true regardless of stimulus (IClamp, Poisson input)
  • However, the Brunel network is not identical

This is due to std::uniform_int_distribution not being portable across compilers (also not demanded by ISO C++), but fortunately MT is portable (thus inputs are identical, but ints drawn from the generator are not)

@thorstenhater thorstenhater linked a pull request Jan 8, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant