Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5255 Discussions

Invalid Memory Access with MKL Random Number Generation functions

Dmitry_V_
Beginner
581 Views
Even though the code seems to be working fine, Intel Inspector 2017 (build 510645) reports two problems: Invalid Memory Access and Invalid Partial Memory Access for the following lines:

Write (Read): vdRngGamma(0, mktStream, numScenOneBlk, tmpSt, 1.0, 0.0, 1.0); Allocation Site: double *tmpSt = new double[numScenOneBlk]; For the Invalid Memory Access problem it shows "Write" for vdRngGamma function and for the Invalid Partial Memory Access it shows "Read". I have another array in this code defined and used in exactly the same way with the only difference that its size is hard coded, whereas numScenOneBlk is a pass by reference parameter. Is it a bug in Intel Inspector or am I doing something wrong? Thanks in advance, Dmitry
0 Kudos
0 Replies
Reply