fminsearch and OpenMP

Forums I think I found a bug fminsearch and OpenMP

This topic contains 1 reply, has 2 voices, and was last updated by Fabian Kindermann November 2, 2020 at 7:54 pm.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1877

    Lucas Finamor
    User

    I believe there is a small problem when using fminsearch in Parallel mode with OpenMP. In line 5535 (inside Brent’s subroutine), the variables “a”,”b”,”d”, and “e” are declared and attributed the value 0d0 in the same line. When trying to debug the code in parallel mode with OpenMP, Intel Checker finds Date racing conditions with these variables.
    I declared them as any other variable (that is, without the 0d0) and I attributed the value 0do in other line. This apparently solved my problem.

    #1883

    Fabian Kindermann
    Moderator

    Dear Lucas,

    sorry, for not getting back to you earlier on this. This is extremely interesting and I will take a closer look at this. I had no problems with using fminsearch in parallel mode with the Intel Fortran Compiler, but I had issues with the gfortran compiler. I will keep you posted once I figured this out.

    Thanks for letting me know.

    Best,
    Fabian

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.