From e3f88be195ebddd4d9b0b74501ffb6d79bf45ea8 Mon Sep 17 00:00:00 2001 From: Yu Date: Fri, 8 Sep 2023 13:42:06 -0700 Subject: [PATCH 1/2] Fix unified_tracer.h so the tool can be built Added #define NOMINMAX so Windows' WinDef.h will not define the min/max macros. --- tools/onetrace/unified_tracer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/onetrace/unified_tracer.h b/tools/onetrace/unified_tracer.h index b50f51c7..8bdf6348 100644 --- a/tools/onetrace/unified_tracer.h +++ b/tools/onetrace/unified_tracer.h @@ -6,6 +6,7 @@ #ifndef PTI_TOOLS_ONETRACE_UNIFIED_TRACER_H_ #define PTI_TOOLS_ONETRACE_UNIFIED_TRACER_H_ +#define NOMINMAX #include #include @@ -1194,4 +1195,4 @@ class UnifiedTracer { Logger* chrome_logger_ = nullptr; }; -#endif // PTI_TOOLS_ONETRACE_UNIFIED_TRACER_H_ \ No newline at end of file +#endif // PTI_TOOLS_ONETRACE_UNIFIED_TRACER_H_ From 7d482193a4f7475fcc35428a76aebe787310d58a Mon Sep 17 00:00:00 2001 From: Yu Date: Fri, 8 Sep 2023 13:56:04 -0700 Subject: [PATCH 2/2] Added additional info in README.md Added info about and downloading git and setting up proxy so the onetrace tool can be built successfully. --- tools/onetrace/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/onetrace/README.md b/tools/onetrace/README.md index f558b778..9cc8111f 100644 --- a/tools/onetrace/README.md +++ b/tools/onetrace/README.md @@ -189,6 +189,10 @@ cd build cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH= .. nmake ``` +Please note that 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 +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] @@ -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 -``` \ No newline at end of file +```