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

Spectral-norm: Change / 2 into * 0.5 to see the impact on nightly testing #19349

Merged
merged 1 commit into from Mar 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/studies/shootout/spectral-norm/bradc/spectralnorm-blc.chpl
@@ -1,15 +1,15 @@
/* The Computer Language Benchmarks Game
https://salsa.debian.org/benchmarksgame-team/benchmarksgame/

contributed by Lydia Duncan, Albert Sidelnik, and Brad Chamberlain
derived from the Chapel version by Lydia Duncan et al. and the
Julia version by TODO
contributed by Brad Chamberlain
derived from the Chapel version by Lydia Duncan et al.
and the Julia version by Adam Beckmeyer and Vincent Yu
*/

config const n = 500; // the size of A (n x n), u and v (n-vectors)

proc main() {
var tmp, u, v: [0..#n] real;
var tmp, u, v: [0..<n] real;

u = 1.0;

Expand Down Expand Up @@ -49,5 +49,5 @@ proc multiplyAtv(v: [?Dv], Atv: [?DAtv]) {
// Compute element i,j of the conceptually infinite matrix A
//
inline proc A(i: real, j: real) {
return 1.0 / ((((i+j) * (i+j+1)) / 2) + i + 1);
return 1.0 / ((((i+j) * (i+j+1)) * 0.5) + i + 1);
}