@@ -13,41 +13,48 @@ set(dpct_python_rule_files
1313 ${CMAKE_SOURCE_DIR} /../clang/tools/dpct/DpctOptRules/python_build_script_migration_rule_ipex.yaml
1414)
1515
16+ set (dpct_pytorch_api_rule_files
17+ ${CMAKE_SOURCE_DIR} /../clang/tools/dpct/DpctOptRules/pytorch_api.yaml
18+ )
19+
1620install (
1721 FILES ${dpct_opt_rule_files}
18- COMPONENT dpct-opt- rules
22+ COMPONENT dpct-rules
1923 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
2024 DESTINATION ./extensions/opt_rules)
2125
2226install (
2327 FILES ${dpct_cmake_rule_files}
24- COMPONENT dpct-cmake- rules
28+ COMPONENT dpct-rules
2529 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
2630 DESTINATION ./extensions/cmake_rules)
2731
2832install (
29- FILES ${dpct_cmake_rule_files }
30- COMPONENT dpct-cmake- rules
33+ FILES ${dpct_python_rule_files }
34+ COMPONENT dpct-rules
3135 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
32- DESTINATION ${CMAKE_BINARY_DIR} /extensions/cmake_rules )
36+ DESTINATION . /extensions/python_rules )
3337
3438install (
35- FILES ${dpct_python_rule_files }
36- COMPONENT dpct-python- rules
39+ FILES ${dpct_pytorch_api_rule_files }
40+ COMPONENT dpct-rules
3741 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
38- DESTINATION ./extensions/python_rules )
42+ DESTINATION ./extensions/pytorch_api_rule_rules )
3943
44+ # Below two install commands are copying those files into some location under
45+ # the build folder, which need be accessed during the LIT.
46+ install (
47+ FILES ${dpct_cmake_rule_files}
48+ COMPONENT dpct-rules
49+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
50+ DESTINATION ${CMAKE_BINARY_DIR} /extensions/cmake_rules)
4051install (
4152 FILES ${dpct_python_rule_files}
42- COMPONENT dpct-python- rules
53+ COMPONENT dpct-rules
4354 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
4455 DESTINATION ${CMAKE_BINARY_DIR} /extensions/python_rules)
4556
4657if (NOT CMAKE_CONFIGURATION_TYPES ) # don't add this for IDE's.
47- add_llvm_install_targets(install -dpct-opt-rules
48- COMPONENT dpct-opt-rules)
49- add_llvm_install_targets(install -dpct-cmake-rules
50- COMPONENT dpct-cmake-rules)
51- add_llvm_install_targets(install -dpct-python-rules
52- COMPONENT dpct-python-rules)
58+ add_llvm_install_targets(install -dpct-rules
59+ COMPONENT dpct-rules)
5360endif ()
0 commit comments