Skip to content

Commit 368ef37

Browse files
committed
Apply discussion fixes
1 parent f4953ee commit 368ef37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmarks/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def check_ipex(self):
5454
self.cmake_prefix_paths.append(intel_extension_for_pytorch.cmake_prefix_path)
5555

5656
def check_call(self, *popenargs, **kwargs):
57-
print(" ".join(popenargs[0]))
57+
log.info(" ".join(popenargs[0]))
5858
if not self.dry_run:
5959
subprocess.check_call(*popenargs, **kwargs)
6060

@@ -69,7 +69,7 @@ def build_extension(self):
6969
"-DCMAKE_MAKE_PROGRAM=" +
7070
ninja_dir, # Pass explicit path to ninja otherwise cmake may cache a temporary path
7171
"-DCMAKE_PREFIX_PATH=" + ";".join(self.cmake_prefix_paths),
72-
"-DUSE_IPEX=" + ("1" if self.use_ipex else "0"),
72+
f"-DUSE_IPEX={int(self.use_ipex)}",
7373
"-DCMAKE_INSTALL_PREFIX=" + self.extdir,
7474
"-DPython3_ROOT_DIR:FILEPATH=" + sys.exec_prefix,
7575
"-DCMAKE_VERBOSE_MAKEFILE=TRUE",

0 commit comments

Comments
 (0)