-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit reflects Dev's discovery of the problem -- thanks Dev. In these few instances of `Option<DevicePointer<GpuFloat>>`, the pointer within a `DevicePointer` was being taken, but then the `DevicePointer` itself was consumed, so if the relevant memory was altered, the code did not behave as intended. Curiously, this never led to a segfault despite being a use after free, and witnessing unintended behaviour seemed to require running many GPU tests concurrently. The code is now simpler and less prone to error; don't have an `Option<DevicePointer>`, just make a `DevicePointer` and if it has no contents, it will give out a null pointer anyway.
- Loading branch information
Showing
6 changed files
with
47 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters