-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor spectral scale_obs to use existing normalization function (#…
…2319) The scale_obs function was calling a custom kernel to scale the elements of a matrix column by the l2-norm of the column. There were two issues: 1. The kernel launch parameters would go out of bounds if the graph was too large. The Y dimension is limited to 65535, but there was no logic in the function to ensure that we didn't set the Y value larger than that 3. A bug in the kernel, the column norm was not being calculated correctly... the outer loop was terminating, hence we were really only computing the column norm of the last column in the block. Then we were normalizing all columns in the block by that value instead of by each value. To simplify (there's going to be some optimization work done this summer), I replaced this with a simple thrust call that will scale the values correctly. Authors: - Chuck Hastings (https://github.com/ChuckHastings) - Corey J. Nolet (https://github.com/cjnolet) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: #2319
- Loading branch information
1 parent
7e37451
commit 12f0096
Showing
3 changed files
with
7 additions
and
82 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
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