Changes

Jump to: navigation, search

GPU621/Intel Parallel Studio Inspector

16 bytes added, 18:21, 20 November 2020
no edit summary
= Memory problems =
===Memory Leak===
In order to test the memory leak diagonsisdiagnosis, the follow following code snippet is used as the error code.
<syntaxhighlight lang="cpp" line='line'>
[[File:MemoryLeak.png|1100px]]
The inspection result shows where the leak resouce resource comes from and its location in the code.
===Invalid Memory Access===
= Thread problems =
===Race Condition===
The follow following program is used to demonstrate the race condition detection in Intel Inspector. In this program, 5 threads are competing to update the 'wallet' object without a lock. The compiler does not see competition as an error and the program always runs successfully. However, the race condition makes the program different results (inconsistant inconsistent output). Data A data race is hard to locate manually but with Intel Inspector, it is easy and quick.
<syntaxhighlight lang="cpp" line='line'>
</syntaxhighlight>
Incorrect results generated by the race condition code.
[[File:RaceResult1.jpg|500px]] [[File:RaceResult2.jpg|500px]]
Update 3: Saturday, Nov 14, 2020 - Worked on creating and referencing error programs for use case demonstrations.
Update 4: Monday, Nov 16, 2020 - Created "how to use" section
Update 5: Tuesday, Nov 17, 2020 - All error codes for the use case scenario are complete
Update 6: Wednesday, Nov 18, 2020 -
119
edits

Navigation menu