Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pfadfindungsalgorithmus
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ayoub Boughourfi
Pfadfindungsalgorithmus
Commits
f3a7c3ab
Commit
f3a7c3ab
authored
3 months ago
by
Ayoub Boughourfi
Browse files
Options
Downloads
Patches
Plain Diff
last update
parent
6f32ff07
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pthwithcuda/main.cpp
+5
-8
5 additions, 8 deletions
pthwithcuda/main.cpp
with
5 additions
and
8 deletions
pthwithcuda/main.cpp
+
5
−
8
View file @
f3a7c3ab
...
...
@@ -17,7 +17,6 @@
#include
"utils/graphgenerator.h"
#include
"utils/performancetest.h"
// Funktion für CPU vs. OpenMP vs. CUDA Vergleich
void
runComparisonTest
(
int
size
,
int
numThreads
)
{
std
::
cout
<<
"
\n
============================================================"
<<
std
::
endl
;
std
::
cout
<<
"TEST: Graph Size "
<<
size
<<
" with "
<<
numThreads
<<
" threads"
<<
std
::
endl
;
...
...
@@ -142,13 +141,11 @@ int main() {
return
1
;
}
// Verschiedene Graphgrößen testen
runComparisonTest
(
100
,
omp_get_max_threads
());
// Klein
runComparisonTest
(
500
,
omp_get_max_threads
());
// Mittel
runComparisonTest
(
1000
,
omp_get_max_threads
());
// Groß
// Sehr große Graphen - optional
// runComparisonTest(2000, omp_get_max_threads());
// Verschiedene Graphgrößen testen bis 4096
for
(
int
i
=
8
;
i
<=
4096
;
i
*=
2
)
{
runComparisonTest
(
i
,
omp_get_max_threads
());
}
std
::
cout
<<
"
\n
============================================================"
;
std
::
cout
<<
"
\n
TEST COMPLETE"
;
...
...
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