OpenMP offload performance is worse than sequential CPU performance
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- cpp
- Ambito
- performance
Direzione di ricerca
Inizia con l’openmp reduction sample e confronta i percorsi di esecuzione della CPU sequenziale, della CPU OpenMP e della GPU OpenMP utilizzando l’ambiente Ubuntu e CPU Intel indicato. Esamina il README e la gestione attuale di num_steps; il lavoro sarà considerato completato quando il sample predefinito non mostrerà in modo fuorviante prestazioni scarse di offload e saranno documentati il parametro regolabile e il contesto delle prestazioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C++
- Stelle
- 1.2k
- Fork
- 745
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oneapi-src/oneAPI-samples
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
oneapi-src/oneAPI-samples#2764 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
oneapi-src/oneAPI-samples#2748 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face Apertaquestion
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
oneapi-src/oneAPI-samples#2705 ·
Tutte le issue di oneapi-src/oneAPI-samples
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ros2/message_filters#338 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
subsurface/subsurface#4984 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google-ai-edge/LiteRT-LM#3739 ·