PandA-2024.02
examples
MachSuite
MachSuite
spmv
crs
spmv.h
Go to the documentation of this file.
1
/*
2
Based on algorithm described here:
3
http://www.cs.berkeley.edu/~mhoemmen/matrix-seminar/slides/UCB_sparse_tutorial_1.pdf
4
*/
5
6
#include <stdlib.h>
7
#include <stdio.h>
8
#include "support.h"
9
10
// These constants valid for the IEEE 494 bus interconnect matrix
11
#define NNZ 1666
12
#define N 494
13
14
#define TYPE double
15
16
void
spmv
(
TYPE
val[
NNZ
], int32_t cols[NNZ], int32_t rowDelimiters[
N
+ 1],
17
TYPE
vec[
N
],
TYPE
out[N]);
19
// Test harness interface code.
20
21
struct
bench_args_t
{
22
TYPE
val
[
NNZ
];
23
int32_t
cols
[
NNZ
];
24
int32_t
rowDelimiters
[
N
+1];
25
TYPE
vec
[
N
];
26
TYPE
out
[
N
];
27
};
bench_args_t::rowDelimiters
int32_t rowDelimiters[N+1]
Definition:
spmv.h:24
bench_args_t::cols
int32_t cols[NNZ]
Definition:
spmv.h:23
NNZ
#define NNZ
Definition:
spmv.h:11
TYPE
#define TYPE
Definition:
spmv.h:14
bench_args_t::vec
TYPE vec[N]
Definition:
spmv.h:25
N
#define N
Definition:
spmv.h:12
bench_args_t
Definition:
aes.h:18
bench_args_t::val
TYPE val[NNZ]
Definition:
spmv.h:22
spmv
void spmv(TYPE val[NNZ], int32_t cols[NNZ], int32_t rowDelimiters[N+1], TYPE vec[N], TYPE out[N])
Definition:
spmv.c:8
bench_args_t::out
TYPE out[N]
Definition:
spmv.h:26
Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by
1.8.13