OverLordGoldDragon / ssqueezepy

Synchrosqueezing, wavelet transforms, and time-frequency analysis in Python
MIT License
636 stars 96 forks source link

Small differences in execution with and without multi-thread #71

Closed epiedadjr closed 2 years ago

epiedadjr commented 2 years ago

I run the minimum example code with and without multi-threaded executions.

Results

  1. It works and with multi-threaded is faster.
  2. However, I saw small results with and without GPU. Attached is the image. Is this normal?
  3. Also, I repeated the process and I have observed changes both in computation time (although the GPU is faster) and different plots.

image

OverLordGoldDragon commented 2 years ago

This isn't normal. GPU vs CPU is tested in tests/ and worst case difference cannot be seen by eye. Please include a minimal reproducible example.

OverLordGoldDragon commented 2 years ago

Perhaps you didn't set a random seed. Feel free to reopen with an MRE.