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

Commit 0444be0

Browse files
polyhedral/mapping_types -> polyhedral/cuda/cuda_mapping_types
1 parent ba396af commit 0444be0

14 files changed

+18
-17
lines changed

include/tc/core/execution_engine-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <string>
1919
#include <vector>
2020

21-
#include "tc/core/polyhedral/mapping_types.h"
21+
#include "tc/core/polyhedral/cuda/cuda_mapping_types.h"
2222
#include "tc/core/utils/memory.h"
2323

2424
#include "tc/lang/parser.h"

include/tc/core/polyhedral/mapping_types.h renamed to include/tc/core/polyhedral/cuda/cuda_mapping_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ struct ThreadId : public MappingId {
133133
} // namespace polyhedral
134134
} // namespace tc
135135

136-
#include "tc/core/polyhedral/mapping_types-inl.h"
136+
#include "tc/core/polyhedral/cuda/cuda_mapping_types-inl.h"

include/tc/core/polyhedral/mapped_scop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <vector>
2323

2424
#include "tc/core/mapping_options.h"
25-
#include "tc/core/polyhedral/mapping_types.h"
25+
#include "tc/core/polyhedral/cuda/cuda_mapping_types.h"
2626
#include "tc/core/polyhedral/memory_promotion_heuristic.h"
2727
#include "tc/core/polyhedral/scop.h"
2828
#include "tc/core/utils/dlpack.h"

include/tc/core/polyhedral/schedule_transforms.h

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

24+
#include "tc/core/polyhedral/cuda/cuda_mapping_types.h"
2425
#include "tc/core/polyhedral/functional.h"
25-
#include "tc/core/polyhedral/mapping_types.h"
2626
#include "tc/core/polyhedral/options.h"
2727
#include "tc/core/polyhedral/schedule_tree.h"
2828
#include "tc/external/isl.h"

include/tc/core/polyhedral/schedule_tree_elem.h

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

2323
#include "tc/external/isl.h"
2424

25-
#include "tc/core/polyhedral/mapping_types.h"
25+
#include "tc/core/polyhedral/cuda/cuda_mapping_types.h"
2626

2727
namespace tc {
2828
namespace polyhedral {

src/autotuner/genetic_tuning_harness.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "tc/core/execution_engine.h"
3333
#include "tc/core/flags.h"
3434
#include "tc/core/mapping_options_cpp_printer.h"
35-
#include "tc/core/polyhedral/mapping_types.h"
35+
#include "tc/core/polyhedral/cuda/cuda_mapping_types.h"
3636
#include "tc/core/scope_guard.h"
3737
#include "tc/core/utils/math.h"
3838

src/core/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ add_library(
1616

1717
polyhedral/codegen.cc
1818
polyhedral/mapped_scop.cc
19-
polyhedral/mapping_types.cc
2019
polyhedral/memory_promotion.cc
2120
polyhedral/memory_promotion_heuristic.cc
2221
polyhedral/reduction_matcher.cc
@@ -27,8 +26,12 @@ add_library(
2726
polyhedral/schedule_print.cc
2827
polyhedral/scop.cc
2928
polyhedral/separation.cc
30-
polyhedral/tighten_launch_bounds.cc
3129
polyhedral/unroll.cc
30+
31+
# Builds and runs without the CUDA SDK and used in cross-compilation tests
32+
polyhedral/codegen_cuda.cc
33+
polyhedral/cuda/cuda_mapping_types.cc
34+
polyhedral/cuda/cuda_tighten_launch_bounds.cc
3235
)
3336
target_include_directories(tc_core PUBLIC ${PROJECT_SOURCE_DIR}/include ${LLVM_INCLUDE_DIRS})
3437
target_link_libraries(
@@ -92,8 +95,6 @@ if (WITH_CUDA)
9295
cuda/cuda_compilation_cache.cc
9396
cuda/cuda_rtc.cc
9497
cuda/cuda_tc_executor.cc
95-
96-
polyhedral/codegen_cuda.cc
9798
)
9899
target_include_directories(tc_core_cuda PUBLIC ${PROJECT_SOURCE_DIR}/include ${LLVM_INCLUDE_DIRS})
99100
target_link_libraries(

src/core/polyhedral/codegen_cuda.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "tc/core/libraries.h"
2727
#include "tc/core/polyhedral/codegen.h"
2828
#include "tc/core/polyhedral/codegen_cuda.h"
29-
#include "tc/core/polyhedral/mapping_types.h"
29+
#include "tc/core/polyhedral/cuda/cuda_mapping_types.h"
3030
#include "tc/core/polyhedral/memory_promotion.h"
3131
#include "tc/core/polyhedral/schedule_isl_conversion.h"
3232
#include "tc/core/polyhedral/schedule_transforms.h"

0 commit comments

Comments
 (0)