Skip to content

Commit c7c99fc

Browse files
[xptifw] Fix sample build (#4766)
Fixes #4722, the path to the header has changed. Signed-off-by: Michel Migdal it@mgdl.fr
1 parent 179e304 commit c7c99fc

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

xptifw/samples/basic_collector/basic_collector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//
8+
#include "xpti/xpti_trace_framework.h"
89
#include "xpti_timers.hpp"
9-
#include "xpti_trace_framework.h"
1010

1111
#include <chrono>
1212
#include <cstdio>
@@ -50,7 +50,7 @@ XPTI_CALLBACK_API void xptiTraceInit(unsigned int major_version,
5050
// registered stream ID
5151
GStreamID = xptiRegisterStream(stream_name);
5252
xpti::string_id_t dev_id = xptiRegisterString("sycl_device", &tstr);
53-
53+
(void)dev_id;
5454
// Register our lone callback to all pre-defined trace point types
5555
xptiRegisterCallback(GStreamID,
5656
(uint16_t)xpti::trace_point_type_t::graph_create,

xptifw/samples/include/xpti_timers.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ inline uint64_t getCPU() { return GetCurrentProcessorNumber(); }
6969
inline xpti::timer::tick_t rdtsc() {
7070
struct timespec ts;
7171
int status = clock_gettime(CLOCK_REALTIME, &ts);
72+
(void)status;
7273
return (static_cast<tick_t>(1000000000UL) * static_cast<tick_t>(ts.tv_sec) +
7374
static_cast<tick_t>(ts.tv_nsec));
7475
}

xptifw/samples/syclpi_collector/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target_link_libraries(xpti_syclpi_collector PRIVATE
55
xptifw
66
${CMAKE_DL_LIBS}
77
)
8-
target_include_directories(xpti_basic_collector PRIVATE
8+
target_include_directories(xpti_syclpi_collector PRIVATE
99
${XPTIFW_DIR}/include
1010
${XPTI_DIR}/include
1111
${XPTIFW_DIR}/samples/include

xptifw/samples/syclpi_collector/syclpi_collector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// An example collector/tool that prints out just the SYCL PI layer trace
33
// events
44
//
5-
#include "xpti_trace_framework.h"
5+
#include "xpti/xpti_trace_framework.h"
66

77
#include <chrono>
88
#include <cstdio>

0 commit comments

Comments
 (0)