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

Before running the simulation, check if necessary arrays are copied to GPU #44

Closed
esinyavuz opened this issue Dec 18, 2014 · 2 comments
Closed

Comments

@esinyavuz
Copy link
Member

Silent errors occur when we forget to copy a variable to the GPU. It would be useful to warn the user if:

  • the values in the GPU are not meaningful (in general arrays contain only zeros if allocated but not initialized)
  • necessary GeNN functions are not called
@esinyavuz
Copy link
Member Author

One way of doing this could be to add a "sanity check" function in runner.cc which would go through the list of all the neuron and synapse groups, copy their variables from the device, print the first values, and sum of absolute values, and return a warning if this sum is zero. Users can then call this function before calling the kernels if they wish. It should be easy enough to implement.

@tnowotny
Copy link
Member

tnowotny commented Dec 4, 2018

This has been overtaken by history.

@tnowotny tnowotny closed this as completed Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants