|
189 | 189 | # NCCL_INCLUDE_DIR
|
190 | 190 | # specify where nccl is installed
|
191 | 191 | #
|
192 |
| -# NVFUSER_SOURCE_DIR |
193 |
| -# specify nvfuser root directory |
194 |
| -# |
195 | 192 | # NVTOOLSEXT_PATH (Windows only)
|
196 | 193 | # specify where nvtoolsext is installed
|
197 | 194 | #
|
@@ -632,11 +629,6 @@ def run(self):
|
632 | 629 | else:
|
633 | 630 | report("-- Not using ITT")
|
634 | 631 |
|
635 |
| - if cmake_cache_vars["BUILD_NVFUSER"]: |
636 |
| - report("-- Building nvfuser") |
637 |
| - else: |
638 |
| - report("-- Not Building nvfuser") |
639 |
| - |
640 | 632 | # Do not use clang to compile extensions if `-fstack-clash-protection` is defined
|
641 | 633 | # in system CFLAGS
|
642 | 634 | c_flags = str(os.getenv("CFLAGS", ""))
|
@@ -736,22 +728,6 @@ def build_extensions(self):
|
736 | 728 | os.makedirs(dst_dir)
|
737 | 729 | self.copy_file(src, dst)
|
738 | 730 |
|
739 |
| - # Copy nvfuser extension |
740 |
| - for i, ext in enumerate(self.extensions): |
741 |
| - if ext.name != "nvfuser._C": |
742 |
| - continue |
743 |
| - fullname = self.get_ext_fullname(ext.name) |
744 |
| - filename = self.get_ext_filename(fullname) |
745 |
| - fileext = os.path.splitext(filename)[1] |
746 |
| - src = os.path.join(os.path.dirname(filename), "nvfuser" + fileext) |
747 |
| - dst = os.path.join(os.path.realpath(self.build_lib), filename) |
748 |
| - if os.path.exists(src): |
749 |
| - report(f"Copying {ext.name} from {src} to {dst}") |
750 |
| - dst_dir = os.path.dirname(dst) |
751 |
| - if not os.path.exists(dst_dir): |
752 |
| - os.makedirs(dst_dir) |
753 |
| - self.copy_file(src, dst) |
754 |
| - |
755 | 731 | setuptools.command.build_ext.build_ext.build_extensions(self)
|
756 | 732 |
|
757 | 733 | def get_outputs(self):
|
@@ -1011,8 +987,6 @@ def make_relative_rpath_args(path):
|
1011 | 987 | excludes.extend(["caffe2", "caffe2.*"])
|
1012 | 988 | if not cmake_cache_vars["BUILD_FUNCTORCH"]:
|
1013 | 989 | excludes.extend(["functorch", "functorch.*"])
|
1014 |
| - if not cmake_cache_vars["BUILD_NVFUSER"]: |
1015 |
| - excludes.extend(["nvfuser", "nvfuser.*"]) |
1016 | 990 | packages = find_packages(exclude=excludes)
|
1017 | 991 | C = Extension(
|
1018 | 992 | "torch._C",
|
@@ -1046,10 +1020,6 @@ def make_relative_rpath_args(path):
|
1046 | 1020 | extensions.append(
|
1047 | 1021 | Extension(name="functorch._C", sources=[]),
|
1048 | 1022 | )
|
1049 |
| - if cmake_cache_vars["BUILD_NVFUSER"]: |
1050 |
| - extensions.append( |
1051 |
| - Extension(name="nvfuser._C", sources=[]), |
1052 |
| - ) |
1053 | 1023 |
|
1054 | 1024 | cmdclass = {
|
1055 | 1025 | "bdist_wheel": wheel_concatenate,
|
@@ -1312,8 +1282,6 @@ def main():
|
1312 | 1282 | "include/torch/csrc/jit/tensorexpr/*.h",
|
1313 | 1283 | "include/torch/csrc/jit/tensorexpr/operators/*.h",
|
1314 | 1284 | "include/torch/csrc/jit/codegen/cuda/*.h",
|
1315 |
| - "include/torch/csrc/jit/codegen/cuda/ops/*.h", |
1316 |
| - "include/torch/csrc/jit/codegen/cuda/scheduler/*.h", |
1317 | 1285 | "include/torch/csrc/onnx/*.h",
|
1318 | 1286 | "include/torch/csrc/profiler/*.h",
|
1319 | 1287 | "include/torch/csrc/profiler/orchestration/*.h",
|
@@ -1355,18 +1323,6 @@ def main():
|
1355 | 1323 | "utils/model_dump/code.js",
|
1356 | 1324 | "utils/model_dump/*.mjs",
|
1357 | 1325 | ]
|
1358 |
| - if get_cmake_cache_vars()["BUILD_NVFUSER"]: |
1359 |
| - torch_package_data.extend( |
1360 |
| - [ |
1361 |
| - "share/cmake/nvfuser/*.cmake", |
1362 |
| - "include/nvfuser/*.h", |
1363 |
| - "include/nvfuser/kernel_db/*.h", |
1364 |
| - "include/nvfuser/multidevice/*.h", |
1365 |
| - "include/nvfuser/ops/*.h", |
1366 |
| - "include/nvfuser/python_frontend/*.h", |
1367 |
| - "include/nvfuser/scheduler/*.h", |
1368 |
| - ] |
1369 |
| - ) |
1370 | 1326 |
|
1371 | 1327 | if get_cmake_cache_vars()["BUILD_CAFFE2"]:
|
1372 | 1328 | torch_package_data.extend(
|
|
0 commit comments