Skip to content

Conversation

@Hananel-Hazan
Copy link
Collaborator

No description provided.

@Hananel-Hazan Hananel-Hazan requested a review from djsaunde June 3, 2018 03:43
@djsaunde
Copy link
Collaborator

djsaunde commented Jun 3, 2018

I don't think this will result in a performance improvement in most cases, especially with GPU Tensors. Re-allocating memory on the GPU is typically more expensively than modifying existing blocks of memory on the GPU.

Either way, this change should be made across all nodes, for all reset state variables, if it is to be made at all.

@Hananel-Hazan
Copy link
Collaborator Author

I think the overhead of the search condition is bigger then allocate memory. Although I dont think they allocated memory of ones, it will be easier and faster to assign one(scalar) to all cell in the matrix in GPUs terms.

@djsaunde
Copy link
Collaborator

djsaunde commented Jun 3, 2018

I’ll take your word for it. In that case, can you make this change for all Nodes objects, and for all the reset state variables?

@djsaunde djsaunde merged commit 6e1d79a into master Jun 4, 2018
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.

3 participants