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

Commit 0579904

Browse files
authored
Merge pull request #279 from facebookresearch/modernize-tc
Modernization of TC codebase
2 parents 8f32ae3 + 1aeaaf1 commit 0579904

File tree

213 files changed

+30
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+30
-33
lines changed

.jenkins/run_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ source /etc/lsb-release
1313
if [[ "$DISTRIB_RELEASE" == 14.04 ]]; then
1414
echo "Running TC backend tests"
1515
FILTER_OUT=MLP_model ./test.sh
16-
./build/benchmarks/MLP_model --gtest_filter=-*2LUT*
16+
./build/tc/benchmarks/MLP_model --gtest_filter=-*2LUT*
1717
if [[ $(conda --version | wc -c) -ne 0 ]]; then
1818
source activate tc-env
1919
echo "Running TC PyTorch tests"
@@ -29,6 +29,6 @@ if [[ "$DISTRIB_RELEASE" == 16.04 ]]; then
2929
else
3030
echo "Running TC backend tests"
3131
FILTER_OUT=MLP_model ./test.sh
32-
./build/benchmarks/MLP_model --gtest_filter=-*2LUT*
32+
./build/tc/benchmarks/MLP_model --gtest_filter=-*2LUT*
3333
fi
3434
fi

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ message(STATUS "Found glog: ${GLOG_LIBRARIES}")
247247
# message(STATUS "${_variableName}=${${_variableName}}")
248248
# endforeach()
249249

250-
add_subdirectory(src)
250+
include_directories(BEFORE ${PROJECT_SOURCE_DIR})
251+
add_subdirectory(tc)
251252

252253
# At the moment pybind is only supported in CUDA mode and compilation fails
253254
# for non-CUDA mode (CUDA_HOME and CUB_HOME undefined error).
@@ -261,13 +262,13 @@ enable_testing()
261262
add_subdirectory(test)
262263

263264
if (WITH_CUDA)
264-
add_subdirectory(examples)
265+
add_subdirectory(tc/examples)
265266
else()
266267
message(STATUS "Not building examples, CUDA not available")
267268
endif()
268269

269270
if (WITH_CAFFE2 AND WITH_CUDA)
270-
add_subdirectory(benchmarks)
271+
add_subdirectory(tc/benchmarks)
271272
else()
272273
message(STATUS "Not building benchmarks, caffe2 or CUDA not available")
273274
endif()

CodeOwners.md

Lines changed: 9 additions & 9 deletions

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
################################################################################
3939
# Copy the proto files only
4040
################################################################################
41-
copyfile("src/proto/compcache.proto", "tensor_comprehensions/compilation_cache.proto")
42-
copyfile("src/proto/mapping_options.proto", "tensor_comprehensions/mapping_options.proto")
41+
copyfile("tc/proto/compcache.proto", "tensor_comprehensions/compilation_cache.proto")
42+
copyfile("tc/proto/mapping_options.proto", "tensor_comprehensions/mapping_options.proto")
4343

4444
################################################################################
4545
# Custom override commands

src/CMakeLists.txt renamed to tc/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
include_directories(.)
2-
include_directories(../include)
32

43
add_subdirectory(lang)
54
add_subdirectory(proto)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)