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

Commit 567715f

Browse files
Moving polyhedral/cuda specific files
polyhedral/cuda_codegen -> polyhedral/cuda/codegen polyhedral/memory_promotion_heuristic -> polyhedral/cuda/memory_promotion_heuristic
1 parent f99634c commit 567715f

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

include/tc/core/polyhedral/codegen_cuda.h renamed to include/tc/core/polyhedral/cuda/codegen.h

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

22-
#include "tc/core/polyhedral/mapped_scop.h"
22+
#include "tc/core/polyhedral/cuda/mapped_scop.h"
2323
#include "tc/core/polyhedral/scop.h"
2424
#include "tc/external/isl.h"
2525

include/tc/core/polyhedral/mapped_scop.h renamed to include/tc/core/polyhedral/cuda/mapped_scop.h

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

2424
#include "tc/core/cuda/cuda_mapping_options.h"
2525
#include "tc/core/polyhedral/cuda/cuda_mapping_types.h"
26-
#include "tc/core/polyhedral/memory_promotion_heuristic.h"
26+
#include "tc/core/polyhedral/cuda/memory_promotion_heuristic.h"
2727
#include "tc/core/polyhedral/scop.h"
2828
#include "tc/core/utils/dlpack.h"
2929
#include "tc/external/isl.h"

src/core/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ add_library(
1515
halide_utils.cc
1616

1717
polyhedral/codegen.cc
18-
polyhedral/mapped_scop.cc
1918
polyhedral/mapping_types.cc
2019
polyhedral/memory_promotion.cc
21-
polyhedral/memory_promotion_heuristic.cc
2220
polyhedral/reduction_matcher.cc
2321
polyhedral/schedule_isl_conversion.cc
2422
polyhedral/schedule_transforms.cc
@@ -32,9 +30,11 @@ add_library(
3230
# Builds and runs without the CUDA SDK and used in cross-compilation tests
3331
cuda/cuda_mapping_options.cc
3432
cuda/cuda_mapping_options_cpp_printer.cc
35-
polyhedral/codegen_cuda.cc
33+
polyhedral/cuda/codegen.cc
3634
polyhedral/cuda/cuda_mapping_types.cc
3735
polyhedral/cuda/cuda_tighten_launch_bounds.cc
36+
polyhedral/cuda/mapped_scop.cc
37+
polyhedral/cuda/memory_promotion_heuristic.cc
3838
)
3939
target_include_directories(tc_core PUBLIC ${PROJECT_SOURCE_DIR}/include ${LLVM_INCLUDE_DIRS})
4040
target_link_libraries(

src/core/cpu/cpu_tc_executor.cc

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

1818
#include "tc/core/cpu/cpu_mapping_options.h"
1919
#include "tc/core/halide_utils.h"
20-
#include "tc/core/polyhedral/mapped_scop.h"
20+
#include "tc/core/polyhedral/cuda/mapped_scop.h"
2121
#include "tc/core/tc2halide.h"
2222
#include "tc/core/utils/dlpack.h"
2323

src/core/cuda/cuda_tc_executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "tc/core/cuda/cuda_compilation_cache.h"
1919
#include "tc/core/cuda/cuda_mapping_options_cpp_printer.h"
2020
#include "tc/core/halide_utils.h"
21-
#include "tc/core/polyhedral/mapped_scop.h"
21+
#include "tc/core/polyhedral/cuda/mapped_scop.h"
2222
#include "tc/core/tc2halide.h"
2323
#include "tc/core/utils/dlpack.h"
2424

src/core/polyhedral/codegen_cuda.cc renamed to src/core/polyhedral/cuda/codegen.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "tc/core/islpp_wrap.h"
2626
#include "tc/core/libraries.h"
2727
#include "tc/core/polyhedral/codegen.h"
28-
#include "tc/core/polyhedral/codegen_cuda.h"
28+
#include "tc/core/polyhedral/cuda/codegen.h"
2929
#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"

src/core/polyhedral/mapped_scop.cc renamed to src/core/polyhedral/cuda/mapped_scop.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "tc/core/polyhedral/mapped_scop.h"
16+
#include "tc/core/polyhedral/cuda/mapped_scop.h"
1717

1818
#include <algorithm>
1919
#include <array>
@@ -26,12 +26,12 @@
2626
#include "tc/core/flags.h"
2727
#include "tc/core/gpu.h"
2828
#include "tc/core/libraries.h"
29-
#include "tc/core/polyhedral/codegen_cuda.h"
29+
#include "tc/core/polyhedral/cuda/codegen.h"
3030
#include "tc/core/polyhedral/cuda/cuda_mapping_types.h"
3131
#include "tc/core/polyhedral/cuda/cuda_tighten_launch_bounds.h"
3232
#include "tc/core/polyhedral/exceptions.h"
3333
#include "tc/core/polyhedral/functional.h"
34-
#include "tc/core/polyhedral/memory_promotion_heuristic.h"
34+
#include "tc/core/polyhedral/cuda/memory_promotion_heuristic.h"
3535
#include "tc/core/polyhedral/schedule_transforms.h"
3636
#include "tc/core/polyhedral/schedule_tree_matcher.h"
3737
#include "tc/core/polyhedral/scop.h"

src/core/polyhedral/memory_promotion_heuristic.cc renamed to src/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#include "tc/core/polyhedral/memory_promotion_heuristic.h"
16+
#include "tc/core/polyhedral/cuda/memory_promotion_heuristic.h"
1717

1818
#include <glog/logging.h>
1919

2020
#include "tc/core/polyhedral/exceptions.h"
21-
#include "tc/core/polyhedral/mapped_scop.h"
21+
#include "tc/core/polyhedral/cuda/mapped_scop.h"
2222
#include "tc/core/polyhedral/memory_promotion.h"
2323
#include "tc/core/polyhedral/schedule_tree.h"
2424
#include "tc/core/polyhedral/schedule_tree_matcher.h"

src/core/polyhedral/reduction_matcher.cc

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

1818
#include <unordered_set>
1919

20-
#include "tc/core/polyhedral/mapped_scop.h"
20+
#include "tc/core/polyhedral/cuda/mapped_scop.h"
2121
#include "tc/core/polyhedral/schedule_tree.h"
2222
#include "tc/core/polyhedral/scop.h"
2323
#include "tc/external/isl.h"

0 commit comments

Comments
 (0)