Knowledge Base Article
WARNING: Selected File does not have the same path as the file's path stored in .aocx file! May result in blank data
Description
Due to a problem in the Intel® FPGA SDK for OpenCL version 19.2, this warning is produced when running the aocl report feature when profiling an OpenCl kernel. An example of the command which runs the report feature and profiler is provided below
aocl report bin/vector_mac.aocx bin/profile.mon bin/vector_mac.source
Resolution
The paths in the .aocx file must be adjusted to exactly match to .source file. Please follow the steps below as a workaround.
1) Run "aocl binedit <path to aocx file> print.acl.profiler.xml > temp.txt"
2) Open the temp.txt file (preferably in some program(text editor) that can run find-and-replace)
3) Run "aocl binedit <path to source file> print .acl.file.0" in order to get the full path of the file (note that if there are multiple source files this should be run with "acl.file.1" and so on)
4) In temp.txt, find all the "filename" and :"file" sections, and replace those paths with the full paths found in the .source file (easy to do with a find-and-replace)
5) Once all the filenames are changed in the temp.txt file, run "aocl binedit <path to aocx source file> set .acl.profiler.xml temp.txt"
Now the .aocx file should have the same full paths as the .source file, and the gui should open the source view.