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

Ensure compatibility with GCC #1

Merged
merged 7 commits into from
Feb 8, 2024
Merged

Conversation

rhysgoldstein
Copy link
Contributor

Revised multiple source files so that the library
compiles successfully and runs reasonably
efficiently with GCC instead of only Visual Studio.

Updated the Readme to reflect these changes.

Various changes made to fix errors and
warnings when building using GCC.
These changes included qualifying
base class template member types and
functions, eliminating static constexpr
variables in functions, and fixing
typos in unused templates.

Also updated readme and analysis
scripts to acknowledge GCC builds.
The previous commit 7f29ca2 built
under GCC but broke compiling
under Visual Studio. GCC disallowed
the static constexpr variable in a
function, but MSVC was more strict
about the order in which templates
were defined.

The neighborhood classes are not
split into a lower level (MoveData and
NeighborhoodData) and an upper
level (Move and Neighborhood)
establishing an ordering of template
definitions that satisfies MSVC.

Also updated the python scripts due
to problems checking paths with
backslashes.
Replacing iterators with indices just in case
the iterators were the cause of some
unexpected runtime patterns observed while
re-running the experiment using a GCC build.
@KeanW KeanW self-assigned this Feb 8, 2024
Copy link

@KeanW KeanW left a comment

Choose a reason for hiding this comment

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

LGTM

@rhysgoldstein rhysgoldstein merged commit 43ecb7e into main Feb 8, 2024
9 checks passed
@rhysgoldstein rhysgoldstein deleted the ensure_compatibility_with_gcc branch February 8, 2024 15:16
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.

2 participants