Visible to Intel only — GUID: GUID-193590B5-97B9-4248-80F0-E27DFF3E5FB7
Visible to Intel only — GUID: GUID-193590B5-97B9-4248-80F0-E27DFF3E5FB7
Collect SYCL Application Traces
The command line collector for Flow Graph Analyzer enables you to capture trace data from SYCL applications. To collect SYCL traces, you will need trace-enabled SYCL run-times. Use the code from Analyze Data Parallel C++ Application as a sample application. To build it:
Copy the code snippet from Analyze Data Parallel C++ Application and save it as va_const.cpp.
Run the following command to build it:
icpx -fsycl -o vac ./va_const.cpp
To collect traces for the SYCL application using the built sample and create the XML files to view with Flow Graph Analyzer:
Set the environment variable FGT_ROOT to point to <fga-install-dir>/fgt:
export FGT_ROOT=<advisor-install-dir>/fga/fgt
Set the back end for the SYCL run-time to OpenCL™ by setting the following environment variable:
export SYCL_BE=PI_OPENCL
NOTE:Current version of Flow Graph Collector does not support Level0.Run the application using the Flow Graph Analyzer collector:
$FGT_ROOT/linux/bin/fgtrun.sh ./vac gpu
This command will generate two files: vac.graphml, which contains the semantic information of what was executed, as in the asynchronous task-graph, and vac.traceml, which contains the execution traces of the application. Open the files in the Flow Graph Analyzer on the current system or copy them to another system with Flow Graph Analyzer installed to investigate.
To launch the Flow Graph Analyzer graphical user interface, use the following command:
<fga-install-dir>/fga/run_fga.sh &