Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPC Benchmark Game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dorian Stoll
HPC Benchmark Game
Commits
43d9e813
Verified
Commit
43d9e813
authored
9 months ago
by
Dorian Stoll
Browse files
Options
Downloads
Patches
Plain Diff
rodinia-srad: c: Output unconditionally
parent
d195daa9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
meson_options.txt
+0
-5
0 additions, 5 deletions
meson_options.txt
src/benchmarks/rodinia-srad/c/meson.build
+0
-7
0 additions, 7 deletions
src/benchmarks/rodinia-srad/c/meson.build
src/benchmarks/rodinia-srad/c/srad.cpp
+0
-16
0 additions, 16 deletions
src/benchmarks/rodinia-srad/c/srad.cpp
with
0 additions
and
28 deletions
meson_options.txt
deleted
100644 → 0
+
0
−
5
View file @
d195daa9
option
(
'rodinia_srad_output'
,
type
:
'boolean'
,
value
:
false
,
)
This diff is collapsed.
Click to expand it.
src/benchmarks/rodinia-srad/c/meson.build
+
0
−
7
View file @
43d9e813
...
@@ -10,16 +10,9 @@ options = [
...
@@ -10,16 +10,9 @@ options = [
'c_std=c99'
,
'c_std=c99'
,
]
]
cxxflags
=
[]
if
get_option
(
'rodinia_srad_output'
)
cxxflags
+=
[
'-DOUTPUT'
]
endif
executable
(
executable
(
'rodinia-srad-c'
,
'rodinia-srad-c'
,
sources
,
sources
,
cpp_args
:
cxxflags
,
dependencies
:
dependencies
,
dependencies
:
dependencies
,
override_options
:
options
,
override_options
:
options
,
)
)
This diff is collapsed.
Click to expand it.
src/benchmarks/rodinia-srad/c/srad.cpp
+
0
−
16
View file @
43d9e813
// srad.cpp : Defines the entry point for the console application.
// srad.cpp : Defines the entry point for the console application.
//
//
//#define OUTPUT
#define OPEN
#define OPEN
#define ITERATION
#define ITERATION
...
@@ -184,13 +182,7 @@ int main(int argc, char *argv[]) {
...
@@ -184,13 +182,7 @@ int main(int argc, char *argv[]) {
// image update (equ 61)
// image update (equ 61)
J
[
k
]
=
J
[
k
]
+
0.25
*
lambda
*
D
;
J
[
k
]
=
J
[
k
]
+
0.25
*
lambda
*
D
;
#ifdef OUTPUT
// printf("%.5f ", J[k]);
#endif // output
}
}
#ifdef OUTPUT
// printf("\n");
#endif // output
}
}
#ifdef ITERATION
#ifdef ITERATION
...
@@ -198,7 +190,6 @@ int main(int argc, char *argv[]) {
...
@@ -198,7 +190,6 @@ int main(int argc, char *argv[]) {
#endif
#endif
#ifdef OUTPUT
for
(
int
i
=
0
;
i
<
rows
;
i
++
)
{
for
(
int
i
=
0
;
i
<
rows
;
i
++
)
{
for
(
int
j
=
0
;
j
<
cols
;
j
++
)
{
for
(
int
j
=
0
;
j
<
cols
;
j
++
)
{
...
@@ -206,7 +197,6 @@ int main(int argc, char *argv[]) {
...
@@ -206,7 +197,6 @@ int main(int argc, char *argv[]) {
}
}
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
#endif
printf
(
"Computation Done
\n
"
);
printf
(
"Computation Done
\n
"
);
...
@@ -233,12 +223,6 @@ void random_matrix(float *I, int rows, int cols) {
...
@@ -233,12 +223,6 @@ void random_matrix(float *I, int rows, int cols) {
for
(
int
i
=
0
;
i
<
rows
;
i
++
)
{
for
(
int
i
=
0
;
i
<
rows
;
i
++
)
{
for
(
int
j
=
0
;
j
<
cols
;
j
++
)
{
for
(
int
j
=
0
;
j
<
cols
;
j
++
)
{
I
[
i
*
cols
+
j
]
=
rand
()
/
(
float
)
RAND_MAX
;
I
[
i
*
cols
+
j
]
=
rand
()
/
(
float
)
RAND_MAX
;
#ifdef OUTPUT
// printf("%g ", I[i * cols + j]);
#endif
}
}
#ifdef OUTPUT
// printf("\n");
#endif
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment