Skip to content

Conversation

@egg-west
Copy link
Contributor

ZeroDivisionError occurs when cuda_prof_exec_time is small enough.
This situation is normal for a project that has little CUDA work.

Or someone does not make his work transferred to CUDA successfully. In this time he profiles the code, this error occurs.

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.

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.

This comment was marked as off-topic.

This comment was marked as off-topic.

@zou3519 zou3519 self-assigned this Oct 15, 2018
Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

Please change the check to check if the profiling result is empty. Thank you for noticing the problem and submitting a fix, @egg-west!

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

Please fix the lint, other than that, lgtm. Thanks @egg-west!

@egg-west
Copy link
Contributor Author

@apaszke PTAL.

@zou3519
Copy link
Contributor

zou3519 commented Oct 18, 2018

@egg-west could you rebase this on top of master so that the circle-ci tests run?

You can do that with:

git pull --rebase upstream master
git push -f

ZeroDivisionError occurs when cuda_prof_exec_time is small enough.
This situation is normal for a project that has little CUDA work. 

Or someone does not make his work transferred to CUDA successfully. In this time he profiles the code, this error occurs.
take the advice from advice and fix a newly discovered problem.
Change the check of `cuda_prof_exec_time` to check the length of cpu profile events.
line 230: remove space for blank line.
@egg-west
Copy link
Contributor Author

@zou3519 Thank you for all the help. I have done rebase, but there are still 2 test failed.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

soumith is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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.

6 participants