Skip to content

Setting nthreads > 1 doesn't seem to work #54

@aufdenkampe

Description

@aufdenkampe

When I initialize a PhreeqcRM reaction model with more than one thread for parallel computations (i.e. model.initialize(nthreads=4), I do not see a speedup in run times.

We can confirm that it isn't being set correctly by running:

model.phreeqc_rm.GetThreadCount()

I also noticed that the mf6rtm.yaml that is created lists nthreads: 1.

I think the issue is related to how we are creating the PhreeqcRM instance

Alternately, it is possible that the PhreeqcRM Python package does not compile the bundled PHREEQC executable with the directive to "USE_OPENMP" for parallelization. See https://usgs-coupled.github.io/phreeqcrm/namespacebmiphreeqcrm.html#ac799e2e2b4364722a16be26bb81f0825

I need to dig into this deeper, unless @p-ortega or anyone else has other ideas.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions