Skip to content

Conversation

@ssnl
Copy link
Collaborator

@ssnl ssnl commented Jun 11, 2018

#8120
Empirical speed up when running our test 10 times is 9.57s => 7.90s with cache enabled.

@ssnl ssnl changed the title Cache cufft plans [wip] Cache cufft plans Jun 11, 2018
@ssnl ssnl force-pushed the cache_fft branch 4 times, most recently from 85dd24d to fa76ac4 Compare June 11, 2018 22:27
@ssnl
Copy link
Collaborator Author

ssnl commented Jun 12, 2018

@pytorchbot retest this please

1 similar comment
@ssnl
Copy link
Collaborator Author

ssnl commented Jun 12, 2018

@pytorchbot retest this please

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@ssnl ssnl changed the title [wip] Cache cufft plans Cache cufft plans Jun 12, 2018

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

I'm going to approve this, but I am a little concerned about the discoverability of the caching mechanism. Should we perhaps figure out some way to turn the caching on by default, e.g., setup some sort of eviction policy in the cache?

@ssnl ssnl force-pushed the cache_fft branch 2 times, most recently from f50c077 to 9ab9994 Compare June 18, 2018 16:57
@ssnl
Copy link
Collaborator Author

ssnl commented Jun 18, 2018

Now using an LRU cache.

docs are not updated yet. I want to check that CI passes first.

@ssnl ssnl force-pushed the cache_fft branch 3 times, most recently from 7cf1e75 to 4a4c66d Compare June 18, 2018 21:21
@ssnl
Copy link
Collaborator Author

ssnl commented Jun 19, 2018

:D CUDA hook worked pretty well. Will update the docs soon.

This comment was marked as off-topic.

@ssnl ssnl requested a review from orionr as a code owner June 22, 2018 14:25
Copy link
Contributor

@orionr orionr left a comment

Choose a reason for hiding this comment

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

Is the third_party/onnx change actually required for this PR?

@ssnl
Copy link
Collaborator Author

ssnl commented Jun 22, 2018

@orionr reverted that change

@ssnl
Copy link
Collaborator Author

ssnl commented Jun 22, 2018

ci failure looks unrelated

@ssnl ssnl merged commit e6c7b38 into pytorch:master Jun 22, 2018
@ssnl ssnl deleted the cache_fft branch June 22, 2018 17:02
@ssnl ssnl restored the cache_fft branch June 22, 2018 19:01
@ssnl ssnl deleted the cache_fft branch June 22, 2018 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants