Journals
Publish with us
Publishing partnerships
About us
Blog
Scientific Programming
Journal overview
For authors
For reviewers
For editors
Table of Contents
Special Issues
Scientific Programming
/
2019
/
Article
/
Alg 1
/
Research Article
Performance Optimization and Modeling of Fine-Grained Irregular Communication in UPC
Listing 1
A straightforward sequential implementation of SpMV using a modified EllPack storage format.
for
(
int
i
= 0;
i
<
n
;
i
++) {
double
tmp = 0.0;
for
(
int
j
= 0;
j
<
r
nz
;
j
++)
tmp +=
A
[
i
∗
r
nz
+
j
] ∗
x
[
J
[
i
∗
r
nz
+
j
]];
y
[
i
] =
D
[
i
] ∗
x
[
i
] + tmp;
}