Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
STREAMBenchmark-jl
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
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
pc2-CI
Julia
STREAMBenchmark-jl
Commits
ee7a1ca7
Commit
ee7a1ca7
authored
2 years ago
by
Carsten Bauer
Browse files
Options
Downloads
Patches
Plain Diff
multiple srcs for original STREAM download
parent
896b8a24
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/original.jl
+29
-9
29 additions, 9 deletions
src/original.jl
test/runtests.jl
+2
-2
2 additions, 2 deletions
test/runtests.jl
with
31 additions
and
11 deletions
src/original.jl
+
29
−
9
View file @
ee7a1ca7
const
ORIGINAL_SOURCES
=
[
"https://www.cs.virginia.edu/stream/FTP/Code/"
,
"https://raw.githubusercontent.com/jeffhammond/STREAM/master/"
]
"""
Download the C STREAM benchmark source code from https://www.cs.virginia.edu/stream into a new folder "
stream
".
"""
function
download_original_STREAM
()
function
download_original_STREAM
(
;
debug
=
false
)
println
(
"- Creating folder
\"
stream
\"
"
)
mkdir
(
"stream"
)
!
isdir
(
"stream"
)
&&
mkdir
(
"stream"
)
println
(
"- Downloading C STREAM benchmark"
)
Downloads
.
download
(
"https://www.cs.virginia.edu/stream/FTP/Code/stream.c"
,
"stream/stream.c"
)
Downloads
.
download
(
"https://www.cs.virginia.edu/stream/FTP/Code/mysecond.c"
,
"stream/mysecond.c"
)
println
(
"- Done."
)
done
=
false
for
src
in
ORIGINAL_SOURCES
if
!
done
try
Downloads
.
download
(
joinpath
(
src
,
"stream.c"
),
"stream/stream.c"
)
Downloads
.
download
(
joinpath
(
src
,
"mysecond.c"
),
"stream/mysecond.c"
)
done
=
true
catch
err
if
debug
@warn
err
end
end
else
break
end
end
if
done
println
(
"- Done."
)
else
println
(
"- Couldn't download original STREAM :("
)
end
return
nothing
end
...
...
This diff is collapsed.
Click to expand it.
test/runtests.jl
+
2
−
2
View file @
ee7a1ca7
...
...
@@ -116,7 +116,7 @@ end
@testset
"Original C STREAM Benchmark"
begin
mktempdir
()
do
tmpdir
cd
(
tmpdir
)
do
STREAMBenchmark
.
download_original_STREAM
()
STREAMBenchmark
.
download_original_STREAM
(
;
debug
=
true
)
@test
isdir
(
"stream"
)
isdir
(
"stream"
)
&&
cd
(
"stream"
)
do
@test
isfile
(
"stream.c"
)
...
...
@@ -141,4 +141,4 @@ end
end
end
end
end
end
\ No newline at end of file
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