Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProgrammationParallelle
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
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
JACQUIER Timeo
ProgrammationParallelle
Commits
807e3208
Commit
807e3208
authored
2 years ago
by
Martin
Browse files
Options
Downloads
Patches
Plain Diff
sauvegarde
parent
bebf93f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ProgrammesEnVrac/main.cpp
+21
-6
21 additions, 6 deletions
src/ProgrammesEnVrac/main.cpp
with
21 additions
and
6 deletions
src/ProgrammesEnVrac/main.cpp
+
21
−
6
View file @
807e3208
...
...
@@ -21,7 +21,7 @@ void parseFile(string namefile) // Enregitrement du fichier dans une variable
ifstream
myfile
;
myfile
.
open
(
namefile
);
if
((
myfile
.
rdstate
()
&
ifstream
::
failbit
)
!=
0
){
std
::
cout
<<
"erreur ouverture"
<<
std
::
endl
;
std
::
cout
<<
"erreur ouverture
du fichier a parse
"
<<
std
::
endl
;
exit
(
0
);
}
if
(
myfile
.
is_open
())
...
...
@@ -217,10 +217,13 @@ uint64_t nbAdditifWithSommeOpenMp(int nb){
}
int
main
(){
//parseFile("testfiles/100000_with_erro.txt");
parseFile
(
"ACF_1000000_over_0123.txt"
);
void
arbreDesSuffixes
(){
SuffixTree
*
tree
=
new
SuffixTree
(
fichier
.
substr
(
0
,
41200
));
int
id
=
0
;
}
void
nbAdditifsAvecSansOpenMP
(){
#ifdef CHRONO
high_resolution_clock
::
time_point
t1
=
high_resolution_clock
::
now
();
...
...
@@ -247,7 +250,19 @@ int main(){
duration
<
double
>
time_span2
=
duration_cast
<
duration
<
double
>>
(
t3
-
t1
);
std
::
cout
<<
"Durée :"
<<
time_span2
.
count
()
<<
" secondes sans OpenMp"
<<
std
::
endl
;
#endif
}
int
main
(){
//parseFile("testfiles/100000_with_erro.txt");
//parseFile("motstests/ACF_100_over_0123.txt");
parseFile
(
"motstests/ACF_1000000_over_0123.txt"
);
//nbAdditifsAvecSansOpenMP();
arbreDesSuffixes
();
}
\ 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