Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 372cd06

Browse files
committed
Move protobufs generated files to tc/proto/*.proto
1 parent d5a159e commit 372cd06

9 files changed

+11
-8
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ __pycache__/
33
*~
44
build/*
55
docs/build/*
6+
tc/proto/*.py
7+
tc/proto/*.cc
8+
tc/proto/*.h
69
third-party/*_cache
710
third-party/llvm_sources*
811
third-party-install/*

tc/core/compilation_cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include <dlpack/dlpack.h>
2626

27-
#include <compcache.pb.h>
27+
#include "tc/proto/compcache.pb.h"
2828

2929
#include "tc/core/utils/time.h"
3030

tc/core/cpu/cpu_mapping_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
#pragma once
1717

18-
#include <mapping_options.pb.h>
18+
#include "tc/proto/mapping_options.pb.h"
1919

2020
#include "tc/core/mapping_options.h"
2121

tc/core/cuda/cuda_compilation_cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include <dlpack/dlpack.h>
2626

27-
#include <compcache.pb.h>
27+
#include "tc/proto/compcache.pb.h"
2828

2929
#include "tc/core/compilation_cache.h"
3030
#include "tc/core/cuda/cuda.h"

tc/core/cuda/cuda_mapping_options.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <tuple>
2222
#include <type_traits>
2323

24-
#include <mapping_options.pb.h>
24+
#include "tc/proto/mapping_options.pb.h"
2525

2626
#include "tc/core/cuda/cuda_mapping_options_cpp_printer.h"
2727
#include "tc/core/flags.h"

tc/core/cuda/cuda_mapping_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
#pragma once
1717

18-
#include <mapping_options.pb.h>
18+
#include "tc/proto/mapping_options.pb.h"
1919

2020
#include <array>
2121
#include <iostream>

tc/core/mapping_options.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <tuple>
2222
#include <type_traits>
2323

24-
#include <mapping_options.pb.h>
24+
#include "tc/proto/mapping_options.pb.h"
2525

2626
#include "tc/core/flags.h"
2727
#include "tc/core/mapping_options_cpp_printer.h"

tc/core/mapping_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
#pragma once
1717

18-
#include <mapping_options.pb.h>
18+
#include "tc/proto/mapping_options.pb.h"
1919

2020
#include <array>
2121
#include <iostream>

tc/proto/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function(tc_protobuf_generate_cpp_py output_dir srcs_var hdrs_var python_var)
6060
set(${python_var} ${${python_var}} PARENT_SCOPE)
6161
endfunction()
6262

63-
tc_protobuf_generate_cpp_py(${CMAKE_CURRENT_BINARY_DIR} PROTO_SRCS PROTO_HDRS PROTO_PY mapping_options.proto compcache.proto)
63+
tc_protobuf_generate_cpp_py(${PROJECT_SOURCE_DIR}/tc/proto PROTO_SRCS PROTO_HDRS PROTO_PY mapping_options.proto compcache.proto)
6464

6565
add_library(tc_proto SHARED ${PROTO_SRCS} ${PROTO_HDRS})
6666
target_link_libraries(tc_proto ${PROTOBUF_LIBRARIES})

0 commit comments

Comments
 (0)