Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a user tries to use double precision but the device does not support it, the run fails rather than either warning or trying to demote everything #29

Closed
tnowotny opened this issue Nov 10, 2014 · 5 comments
Labels

Comments

@tnowotny
Copy link
Member

We need to have a look at this - maybe it's not that urgent as most devices now do support double precision. See corresponding issue 18 in brian2genn as well.

@esinyavuz
Copy link
Member

@tnowotny, If sm < 1.3, maybe we can simply make a typedef to redefine double as float? Or we can leave it as it is as old sm versions will not be supported by new CUDA versions.

@tnowotny
Copy link
Member Author

I guess throwing a warning and then trying a redefinition might be one way forward - but in a sense it might be more honest and avoiding any confusion on what has actually run to warn and abort. The users can decide to change things to float or find themselves a newer GPU?

@Shailesh-Tripathi
Copy link

I am a newbie and trying to help fix this bug. Would it be okay to simply give an Error message and exit or do I need to do something else?
Thanks

@tnowotny
Copy link
Member Author

Hi shalesh210,
an informative error message and exit may be a good start. Longer term one could think of a warning followed by an automatic demotion of the model precision to single precision floating point; however there would also be downsides to this - users might miss the warning and then take the SP float results as being DP.

@tnowotny
Copy link
Member Author

fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants