Skip to content

Commit

Permalink
build: relocated src/common/ittnotify to third_party
Browse files Browse the repository at this point in the history
  • Loading branch information
vpirogov committed Jan 15, 2025
1 parent 1326f7c commit e86be30
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 24 deletions.
6 changes: 3 additions & 3 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ file(GLOB SOURCES
if(DNNL_ENABLE_JIT_PROFILING OR DNNL_ENABLE_ITT_TASKS)
if(DNNL_TARGET_ARCH STREQUAL "AARCH64" OR DNNL_TARGET_ARCH STREQUAL "X64")
file(GLOB ITT_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/ittnotify/*.[ch]
${PROJECT_SOURCE_DIR}/third_party/ittnotify/*.c
)
list(APPEND SOURCES ${ITT_SOURCES})

Expand All @@ -33,10 +33,10 @@ if(DNNL_ENABLE_JIT_PROFILING OR DNNL_ENABLE_ITT_TASKS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DITT_API_IPT_SUPPORT")
if(UNIX OR MINGW)
enable_language(ASM)
set(ITT_PT ${CMAKE_CURRENT_SOURCE_DIR}/ittnotify/ittptmark64.S)
set(ITT_PT ${PROJECT_SOURCE_DIR}/third_party/ittnotify/ittptmark64.S)
else()
enable_language(ASM_MASM)
set(ITT_PT ${CMAKE_CURRENT_SOURCE_DIR}/ittnotify/ittptmark64.asm)
set(ITT_PT ${PROJECT_SOURCE_DIR}/third_party/ittnotify/ittptmark64.asm)
endif()
list(APPEND SOURCES ${ITT_PT})
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/common/ittnotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include "utils.hpp"

#if defined(DNNL_ENABLE_ITT_TASKS)
#include "common/ittnotify/ittnotify.h"
#include "dnnl_debug.h"
#include "ittnotify/ittnotify.h"
#endif

namespace dnnl {
Expand Down
18 changes: 0 additions & 18 deletions src/common/ittnotify/.clang-format

This file was deleted.

4 changes: 2 additions & 2 deletions src/cpu/jit_utils/jit_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2019-2024 Intel Corporation
* Copyright 2019-2025 Intel Corporation
* Copyright 2021 FUJITSU LIMITED
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -31,7 +31,7 @@
#endif

#if DNNL_ENABLE_JIT_PROFILING
#include "common/ittnotify/jitprofiling.h"
#include "ittnotify/jitprofiling.h"
#ifdef __linux__
#include "cpu/jit_utils/linux_perf/linux_perf.hpp"
#endif
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e86be30

Please sign in to comment.