Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unified_tracer.h and add info in README.md so onetrace can be built successfully for Windows #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tools/onetrace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ cd build
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=<opencl_icd_lib_path> ..
nmake
```
Please note that <opencl_icd_lib_path> is the path where you can find in Windows' "Registry Editor" (Search "Registry Editor" with the "magnifying glass" icon) and look under HKEY_LOCAL_MACHINE -> SOFTWARE -> Khronos -> OpenCL -> Vendors and you should see something like this: C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\lib\x64\intelocl64.dll, this is your <opencl_icd_lib_path>
You also need to download and install git, and set up the proxy in the command prompt:
git config --global http.proxy http://[username]:[password]%40[your proxy]

Use this command line to run the tool:
```sh
onetrace.exe [options] <target_application>
Expand All @@ -197,4 +201,4 @@ One may use e.g. [dpc_gemm](../../samples/dpc_gemm) as target application, e.g.:
```sh
onetrace.exe -c -h ..\..\..\samples\dpc_gemm\build\dpc_gemm.exe cpu
onetrace.exe -c -h ..\..\..\samples\dpc_gemm\build\dpc_gemm.exe gpu
```
```
3 changes: 2 additions & 1 deletion tools/onetrace/unified_tracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#ifndef PTI_TOOLS_ONETRACE_UNIFIED_TRACER_H_
#define PTI_TOOLS_ONETRACE_UNIFIED_TRACER_H_
#define NOMINMAX

#include <chrono>
#include <cstdint>
Expand Down Expand Up @@ -1194,4 +1195,4 @@ class UnifiedTracer {
Logger* chrome_logger_ = nullptr;
};

#endif // PTI_TOOLS_ONETRACE_UNIFIED_TRACER_H_
#endif // PTI_TOOLS_ONETRACE_UNIFIED_TRACER_H_