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

Runtime threads, CMake, fixed warnings #6

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

dorooleg
Copy link
Contributor

@dorooleg dorooleg commented Apr 3, 2018

  1. Added ability to set threads in runtime
  2. Using CMake for examples and tests
  3. Fixed warnings for clang compiler

@dvyukov, what do you think is better to create a lot of little PR or use the current big?

Explore the appeal to non-valid memory in history
@dvyukov
Copy link
Owner

dvyukov commented Apr 4, 2018

Hi @dorooleg,

Thanks for improving things. There are quite a few patches to review at once. I also see some merges, which I prefer to be removed (let's keep history linear). Also I see a commit which conflicts with your recent commit that is already merged, this needs to be resolved.

Please split commits into logical smaller groups.
Say, one can be fixing various compiler warnings and minor cleanups (which is always good).
Then, then adding Makefiles. Let's do Makefiles instead of cmake, cmake is rather convoluted and obscure system.

What's the motivation for making thread counts dynamic? How does this affect performance?

.gitignore Outdated
@@ -30,3 +30,6 @@
*.exe
*.out
*.app

# QtCreator
Copy link
Owner

Choose a reason for hiding this comment

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

Why? How does QtCreator involved in relacy?

*.dll

# Fortran module files
*.mod
Copy link
Owner

Choose a reason for hiding this comment

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

Fortran?
Please let's keep only the stuff that actually in use here.
From object files we need only *.o I think. What is *.gch precompiled headers? Who creates them? Do we create any dylib/dll? Do we build any static libraries at all?

#include "random_scheduler.hpp"
#include "full_search_scheduler.hpp"
#include "context_bound_scheduler.hpp"
#include "schedulers/random_scheduler.hpp"
Copy link
Owner

Choose a reason for hiding this comment

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

Commits like this need some explanation of the motivation.
Scheedulers structure changed. Ok, good. But why? Can we not do this change? What is the problem this commit solves?

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