Menu

Possible OpenMP Issue

7heW4yne
2017-03-01
2017-03-08
  • 7heW4yne

    7heW4yne - 2017-03-01

    Hello.

    I'm not an expert in parallel computing, but IMHO there may be an issue in "TDStretch::calcCrossCorr" if OpenMP is activated and the SAMPLETYPE is "short".

    The method is called in a parallelized loop in TDStrech.cpp @ line 307 and following.
    AND in "calcCrossCorr" (Line 880) there is:

    if (lnorm > maxnorm)
    {
        maxnorm = lnorm;
    }
    

    This means that "calcCrossCorr" is called in parallel and all of them may set "maxnorm" without a critical section.

     
  • oparviai

    oparviai - 2017-03-05

    Hmm, you are right, using Integer sample data with OpenMP indeed had this potential multi-access 'hole'. This is now fixed in soundtouch svn repository.

     
  • 7heW4yne

    7heW4yne - 2017-03-08

    Thx!

     

Log in to post a comment.