OpenMP offload performance is worse than sequential CPU performance
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- cpp
- Bereich
- performance
Rechercherichtung
Beginnen Sie mit dem openmp reduction sample und vergleichen Sie die sequenziellen CPU-, OpenMP-CPU- und OpenMP-GPU-Ausführungspfade unter Verwendung der angegebenen Ubuntu- und Intel-CPU-Umgebung. Prüfen Sie das README und die aktuelle Handhabung von num_steps; als abgeschlossen gilt die Aufgabe, wenn das Standardsample nicht irreführend eine schlechte Offload-Performance zeigt und der anpassbare Parameter sowie der Performance-Kontext dokumentiert sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Provide a short summary of the issue. Sections below provide guidance on what
factors are considered important to reproduce an issue.
The time taken to complete calculation of pi using sequential CPU execution is better than OpenMP CPU and OpenMP GPU
Version
Report oneAPI Toolkit version and oneAPI Sample version or hash.
Samples commit id: 4bed52e76ceb17243a0bc4ce24e9aed52aaa6e49
Environment
Provide OS information and hardware information if applicable.
Ubuntu 20.04
11th Gen Intel(R) Core(TM) i7-1185GRE @ 2.80GHz
Steps to reproduce
Please check that the issue is reproducible with the latest revision on
master. Include all the steps to reproduce the issue.
build and run the openmp reduction sample.
Observed behavior
Document behavior you observe. For performance defects, like performance
regressions or a function being slow, provide a log if possible.
observe the time taken by each and notice that openmp offload performs the worst.
Expected behavior
Document behavior you expect.
OpenMP offload should perform better.
Verified Fix
Increase the number of steps by a factor of 100 and the time taken for each lines up according to expectations. OpenMP offload better than OpenMP CPU better than Seq CPU. We do not want developers to be presented with a poorly performing offload to begin with. The alternative is mention this in the README or perhaps do both. Increase num_steps and add some detail to the README. It will also be good to add the num_steps as a tunable parameter with a default value so developer can play with it.
- Vorherrschende Sprache
- C++
- Sterne
- 1.2k
- Forks
- 745
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus oneapi-src/oneAPI-samples
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
oneapi-src/oneAPI-samples#2764 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
oneapi-src/oneAPI-samples#2748 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face Offenquestion
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
oneapi-src/oneAPI-samples#2705 ·
Alle Issues in oneapi-src/oneAPI-samples
Ähnliche Issues
-
[CI] Nightly Clang build broken: structured binding captured in a lambda in FileDataSource.cpp Offenbug build
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 91/100
facebookincubator/velox#19194 ·
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW Offenfuzz
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
ClickHouse/ClickHouse#122114 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
-
module/agent platform/macos type/bug/regression
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
enhancement PyCDE
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100