Skip to content

Conversation

@NimaSarajpoor
Copy link
Collaborator

@codecov
Copy link

codecov bot commented Jul 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.41%. Comparing base (e7bb2b8) to head (a0aee8e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1004   +/-   ##
=======================================
  Coverage   97.41%   97.41%           
=======================================
  Files          89       89           
  Lines       14922    14922           
=======================================
  Hits        14537    14537           
  Misses        385      385           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NimaSarajpoor NimaSarajpoor requested a review from seanlaw as a code owner July 13, 2024 06:47
Copy link
Contributor

@seanlaw seanlaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NimaSarajpoor The changes look good to me. Can you describe what is actually taking a long time or causing the spike in time?

If this is sufficient, is there a reason why we don't change the tests in test_ostinato and test_aamp_ostinato?

@NimaSarajpoor
Copy link
Collaborator Author

@seanlaw
The spike is coming from calling gpu_ostinato.

I think the only difference between test_ostinato and test_gpu_ostinato is the part that we compute the consensus. The former uses ostinato and the latter uses gpu_ostinato. These two functions themselves are similar and the only difference is that the former calls stump and the latter calls gpu_stump. When we turn off CUDA and JIT, stump algo should be faster. For example, on my Mac, for the window size 20 and the input list Ts that contains time series of lengths 512 and 1024, the gpu_ostinato takes 60 sec while ostinato takes 3 sec. I did not dig further.

@seanlaw
Copy link
Contributor

seanlaw commented Jul 13, 2024

Shall I merge this now?

@NimaSarajpoor
Copy link
Collaborator Author

@seanlaw

Shall I merge this now?

sure 👍

@seanlaw seanlaw merged commit 87fbd57 into stumpy-dev:main Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants