Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
solverstack
ScalFMM
Commits
03146198
Commit
03146198
authored
2 months ago
by
PRUVOST Florent
Browse files
Options
Downloads
Patches
Plain Diff
benchs: database scalfmm.sqlite3 must be updated serially
parent
b6d6ba44
No related branches found
No related tags found
No related merge requests found
Pipeline
#1130957
passed
2 months ago
Stage: docker
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
scripts/database.sh
+37
-0
37 additions, 0 deletions
scripts/database.sh
scripts/plafrim_level3.sh
+3
-33
3 additions, 33 deletions
scripts/plafrim_level3.sh
with
53 additions
and
33 deletions
.gitlab-ci.yml
+
13
−
0
View file @
03146198
...
@@ -98,6 +98,19 @@ benchmark:
...
@@ -98,6 +98,19 @@ benchmark:
when
:
always
when
:
always
paths
:
paths
:
-
./*.log
-
./*.log
-
./*.csv
-
./scripts/results/
database
:
stage
:
deploy
tags
:
[
'
plafrim'
]
#extends: .only-main-mr
needs
:
[
'
benchmark'
]
script
:
-
./scripts/database.sh
artifacts
:
when
:
always
paths
:
-
./*.sqlite3
-
./*.sqlite3
-
./*.csv
-
./*.csv
...
...
This diff is collapsed.
Click to expand it.
scripts/database.sh
0 → 100755
+
37
−
0
View file @
03146198
#!/usr/bin/env bash
set
-ex
# get current database file scalfmm.sqlite3 stored on gitlab
if
[[
!
-z
"
${
CI_JOB_TOKEN
}
"
]]
;
then
export
PACKAGEID
=
`
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages"
|jq
'.[0].id'
`
if
[[
"
${
PACKAGEID
}
"
!=
"null"
]]
;
then
export
FILEID
=
`
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/
$PACKAGEID
/package_files"
|jq
'.[0].id'
`
if
[[
"
${
FILEID
}
"
!=
"null"
]]
;
then
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/generic/benchmark/latest/scalfmm.sqlite3"
-o
scalfmm.sqlite3
fi
fi
fi
# update scalfmm.sqlite3 database, tables : accuracy, timeseq, timeomp
jube result scripts/results
--id
1
-o
accuracy
jube result scripts/results
--id
2
-o
timeseq
jube result scripts/results
--id
3
-o
timeomp
# upload updated scalfmm.sqlite3 on gitlab
if
[[
!
-z
"
${
CI_JOB_TOKEN
}
"
]]
;
then
# get package id of the database stored on gitlab
export
PACKAGEID
=
`
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages"
|jq
'.[0].id'
`
if
[[
"
${
PACKAGEID
}
"
!=
"null"
]]
;
then
# get file id of the database on gitlab
export
FILEID
=
`
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/
$PACKAGEID
/package_files"
|jq
'.[0].id'
`
if
[[
"
${
FILEID
}
"
!=
"null"
]]
;
then
# delete previous database version on gitlab if exists
curl
--request
DELETE
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/
$PACKAGEID
/package_files/
$FILEID
"
fi
fi
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
--upload-file
./scalfmm.sqlite3
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/generic/benchmark/latest/scalfmm.sqlite3"
fi
# send results to the elasticsearch server
#ls guix.json
#python3 script/add_result.py -e https://elasticsearch.bordeaux.inria.fr -t concace -p "scalfmm" scalfmm.csv
This diff is collapsed.
Click to expand it.
scripts/plafrim_level3.sh
+
3
−
33
View file @
03146198
...
@@ -25,17 +25,6 @@ if [ -d scripts/results ]; then
...
@@ -25,17 +25,6 @@ if [ -d scripts/results ]; then
rm
scripts/results
-r
rm
scripts/results
-r
fi
fi
# get current database file scalfmm.sqlite3 stored on gitlab
if
[[
!
-z
"
${
CI_JOB_TOKEN
}
"
]]
;
then
export
PACKAGEID
=
`
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages"
|jq
'.[0].id'
`
if
[[
"
${
PACKAGEID
}
"
!=
"null"
]]
;
then
export
FILEID
=
`
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/
$PACKAGEID
/package_files"
|jq
'.[0].id'
`
if
[[
"
${
FILEID
}
"
!=
"null"
]]
;
then
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/generic/benchmark/latest/scalfmm.sqlite3"
-o
scalfmm.sqlite3
fi
fi
fi
# configuration
# configuration
cmake
-B
build
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_CXX_FLAGS
=
"-O3 -march=native"
-Dscalfmm_BUILD_BENCH
=
ON
-Dscalfmm_USE_MKL
=
ON
cmake
-B
build
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_CXX_FLAGS
=
"-O3 -march=native"
-Dscalfmm_BUILD_BENCH
=
ON
-Dscalfmm_USE_MKL
=
ON
...
@@ -53,7 +42,7 @@ case "${CI_BENCHMARK}" in
...
@@ -53,7 +42,7 @@ case "${CI_BENCHMARK}" in
jube result scripts/results
--id
1
-o
accuracy_csv
>
scalfmm_accuracy.csv
jube result scripts/results
--id
1
-o
accuracy_csv
>
scalfmm_accuracy.csv
cat
scalfmm_accuracy.csv
cat
scalfmm_accuracy.csv
# update scalfmm.sqlite3 database, table accuracy
# update scalfmm.sqlite3 database, table accuracy
jube result scripts/results
--id
1
-o
accuracy
#
jube result scripts/results --id 1 -o accuracy
;;
;;
timeseq
)
timeseq
)
echo
"CI_BENCHMARK is set to timeseq."
echo
"CI_BENCHMARK is set to timeseq."
...
@@ -62,7 +51,7 @@ case "${CI_BENCHMARK}" in
...
@@ -62,7 +51,7 @@ case "${CI_BENCHMARK}" in
jube analyse scripts/results
--id
2
jube analyse scripts/results
--id
2
jube result scripts/results
--id
2
-o
timeseq_csv
>
scalfmm_timeseq.csv
jube result scripts/results
--id
2
-o
timeseq_csv
>
scalfmm_timeseq.csv
cat
scalfmm_timeseq.csv
cat
scalfmm_timeseq.csv
jube result scripts/results
--id
2
-o
timeseq
#
jube result scripts/results --id 2 -o timeseq
;;
;;
timeomp
)
timeomp
)
echo
"CI_BENCHMARK is set to timeomp."
echo
"CI_BENCHMARK is set to timeomp."
...
@@ -71,29 +60,10 @@ case "${CI_BENCHMARK}" in
...
@@ -71,29 +60,10 @@ case "${CI_BENCHMARK}" in
jube analyse scripts/results
--id
3
jube analyse scripts/results
--id
3
jube result scripts/results
--id
3
-o
timeomp_csv
>
scalfmm_timeomp.csv
jube result scripts/results
--id
3
-o
timeomp_csv
>
scalfmm_timeomp.csv
cat
scalfmm_timeomp.csv
cat
scalfmm_timeomp.csv
jube result scripts/results
--id
3
-o
timeomp
#
jube result scripts/results --id 3 -o timeomp
;;
;;
*
)
*
)
echo
"CI_BENCHMARK is set to an unknown value."
echo
"CI_BENCHMARK is set to an unknown value."
exit
1
exit
1
;;
;;
esac
esac
# upload updated scalfmm.sqlite3 on gitlab
if
[[
!
-z
"
${
CI_JOB_TOKEN
}
"
]]
;
then
# get package id of the database stored on gitlab
export
PACKAGEID
=
`
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages"
|jq
'.[0].id'
`
if
[[
"
${
PACKAGEID
}
"
!=
"null"
]]
;
then
# get file id of the database on gitlab
export
FILEID
=
`
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/
$PACKAGEID
/package_files"
|jq
'.[0].id'
`
if
[[
"
${
FILEID
}
"
!=
"null"
]]
;
then
# delete previous database version on gitlab if exists
curl
--request
DELETE
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/
$PACKAGEID
/package_files/
$FILEID
"
fi
fi
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
--upload-file
./scalfmm.sqlite3
"https://gitlab.inria.fr/api/v4/projects/
$CI_PROJECT_ID
/packages/generic/benchmark/latest/scalfmm.sqlite3"
fi
# send results to the elasticsearch server
#ls guix.json
#python3 script/add_result.py -e https://elasticsearch.bordeaux.inria.fr -t concace -p "scalfmm" scalfmm.csv
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