OpenCL performance degrades when run with Intel VTune

Bug #1968955 reported by Masato Nakasaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

When running OpenCL applications on Elkhart Lake iGPU (x6425RE), we observe performance drop about 35% when run with Intel VTune GPU Compute/Media Hotspots mode.

For example, running a sgemm sample from CLBlast (github.com/CNugteren/CLBlast/samples/sgemm.cpp) results in following (modified to run 10 iterations):

$ ./clblast_sample_sgemm
Completed SGEMM in 1107.954 ms with status 0
Completed SGEMM in 0.727 ms with status 0
Completed SGEMM in 0.684 ms with status 0
Completed SGEMM in 0.900 ms with status 0
Completed SGEMM in 0.692 ms with status 0
Completed SGEMM in 0.668 ms with status 0
Completed SGEMM in 0.678 ms with status 0
Completed SGEMM in 0.668 ms with status 0
Completed SGEMM in 0.674 ms with status 0
Completed SGEMM in 0.678 ms with status 0

However if we do the same run with VTune the performance drops.

$ vtune -collect gpu-hotspots -- ./clblast_sample_sgemm
...
Completed SGEMM in 1206.028 ms with status 0
Completed SGEMM in 1.254 ms with status 0
Completed SGEMM in 1.130 ms with status 0
Completed SGEMM in 1.070 ms with status 0
Completed SGEMM in 1.035 ms with status 0
Completed SGEMM in 1.149 ms with status 0
Completed SGEMM in 1.122 ms with status 0
Completed SGEMM in 1.029 ms with status 0
Completed SGEMM in 0.984 ms with status 0
Completed SGEMM in 1.076 ms with status 0

We do not observe similar performance drop on Apollo Lake x7-E3950 with the same software setup. This may be an issue on VTune side but difficult to tell.

Environment:
- OS: Ubuntu for Intel IOT platform 20.04.4 (kernel: 5.13.0-1010-intel)
- CPU: Atom x6425RE
- VTune version: 2022.1.0
- OpenCL environment: Setup based on drivers from https://dgpu-docs.intel.com/releases/releases-20211130.html

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1968955/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.