Skip to content

Reformat - #54

Merged
oschulz merged 6 commits into
bat:devfrom
greenwald:reformat
Sep 11, 2015
Merged

oschulz merged 6 commits into
bat:devfrom
greenwald:reformat

Conversation

@greenwald

Copy link
Copy Markdown
Contributor

The merge undoes the parallel_TEST changes.

The rest refactors the models/base classes so that they don't have code repeats and can work with parallelization.

@oschulz

oschulz commented Aug 31, 2015

Copy link
Copy Markdown
Member

Should the "efficiencyFitterExample.C" run now? I get

$ root -l efficiencyFitterExample.C
Summary : Opening logfile log.txt
Summary : Marginalize using Metropolis
Summary : Pre-run Metropolis MCMC for model "fitter_model_f1" ...
Summary :  --> Perform MCMC pre-run with 2 chains, each with maximum 10000 iterations

 *** Break *** segmentation violation

 *** Break *** segmentation violation

Or is this a different issue?

@greenwald

Copy link
Copy Markdown
Contributor Author

It should not run if you have parallelization enabled. But it should run with it disabled. This pull is for code that is fully ready for parallelization; however, not if you run it in a ROOT macro. The error I get is about GOMP_parallel being undefined, because ROOT doesn't know about omp.

What was your configuration when you got this error?

@oschulz

oschulz commented Sep 1, 2015

Copy link
Copy Markdown
Member

I did indeed configure with --enable-roostats --with-cuba --enable-parallelization.
Interestingly, on another machine it seems to run (well, segfaults are like that ...).

@greenwald

Copy link
Copy Markdown
Contributor Author

Can you check on the machine on which it ran if ROOT is somehow configured to know about omp? Which version of ROOT was it?

@oschulz

oschulz commented Sep 1, 2015

Copy link
Copy Markdown
Member

It's root-6.04.02, and yes, the parallel examples run on all cores.

@greenwald

Copy link
Copy Markdown
Contributor Author

This should still be ready for pulling. Are you guys waiting for something on this?

@fredRos

fredRos commented Sep 9, 2015

Copy link
Copy Markdown
Contributor

I agree with @greenwald , but I thought @oschulz might have something against it. If not, I'm for accepting the pull request. I didn't check the commits individually but at least histogramFitter and efficiencyFitter work with multiple threads

@oschulz

oschulz commented Sep 10, 2015

Copy link
Copy Markdown
Member

Nothing against it, I just didn't know if the segfaults should be fixed first. But I guess that's a different issue?

@fredRos

fredRos commented Sep 10, 2015

Copy link
Copy Markdown
Contributor

I checked and didn't get a segfault anymore with the update branch. But of course I will let @oschulz test himself 😄

@greenwald

Copy link
Copy Markdown
Contributor Author

If there are segfaults, they should be unrelated to the material in the pull.

oschulz added a commit that referenced this pull request Sep 11, 2015
@oschulz
oschulz merged commit 0afbb66 into bat:dev Sep 11, 2015
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.

3 participants