Skip to content

Commit 58019aa

Browse files
committed
fix
1 parent c77e91d commit 58019aa

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

python/paddle/utils/cpp_extension/cpp_extension.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -406,19 +406,12 @@ def initialize_options(self) -> None:
406406

407407
def finalize_options(self) -> None:
408408
super().finalize_options()
409-
self.parallel = True
410409
# NOTE(Aurelius84): Set location of compiled shared library.
411410
# Carefully to modify this because `setup.py build/install`
412411
# and `load` interface rely on this attribute.
413412
if self.output_dir is not None:
414413
self.build_lib = self.output_dir
415414

416-
# def build_extension(self, ext):
417-
# orignal_compile = self.compiler.__class__.compile
418-
# self.compiler.__class__.compile = single_extension_compile
419-
# super().build_extension(ext)
420-
# self.compiler.__class__.compile = orignal_compile
421-
422415
def build_extensions(self) -> None:
423416
if OS_NAME.startswith("darwin"):
424417
self._valid_clang_compiler()
@@ -442,7 +435,6 @@ def build_extensions(self) -> None:
442435
original_compile = self.compiler.compile
443436
original_spawn = self.compiler.spawn
444437
else:
445-
# original_compile = self.compiler._compile
446438
original_compile = self.compiler.__class__._compile
447439

448440
def unix_custom_single_compiler(

0 commit comments

Comments
 (0)