Skip to content

FitRecipe returns different results when it is running in parallel #56

Closed
diffpy/diffpy.structure
#26
@chiahaoliu

Description

@chiahaoliu

@pavoljuhas I found the FitRecipe returns different refinement results when it is running in parallel with multiprocessing. Running a series of refinement sequentially in a for loop would give different results than running the same series of refinements in parallel and results from sequential refinement seem more correct. Interestingly, I didn't have this problem till when using diffpy stack that was pinned to py3.6

I've created a minimal code based on the standard Ni refinement example in the doc. to reproduce this behavior in my fork https://github.com/chiahaoliu/diffpy.srfit/tree/test_parallel

My diffpy packages are installed via conda, with information below (include scipy as we are using their optimizer)

# Name                    Version                   Build  Channel
diffpy-cmi                3.0.0                    py37_0    diffpy
diffpy.srfit              3.0.0                    py37_0    diffpy
diffpy.srreal             1.3.0            py37hbf07610_0    diffpy
diffpy.structure          3.0.0                      py_0    diffpy
diffpy.utils              3.0.0                      py_0    diffpy
libdiffpy                 1.4.0                h19d8545_1    diffpy
scipy                     1.2.1            py37h7c811a0_0

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions