Skip to content

Commit d75da6c

Browse files
authored
Fix aarch64 torchvision build (#1363)
* Fix torchvision image extension compilation * Fix torchvision image extension compilation * Set enable_mkldnn to pypi build
1 parent ce427de commit d75da6c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

aarch64_linux/build_aarch64_wheel.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ def build_torchvision(host: RemoteHost, *,
301301
"v2.0.0": ("0.15.1", "rc2"),
302302
})
303303
print('Building TorchVision wheel')
304+
305+
# Please note libnpg and jpeg are required to build image.so extension
306+
if(use_conda):
307+
host.run_cmd("conda install -y libpng jpeg")
308+
304309
build_vars = ""
305310
if branch == 'nightly':
306311
version = host.check_output(["if [ -f vision/version.txt ]; then cat vision/version.txt; fi"]).strip()
@@ -768,7 +773,7 @@ def parse_arguments():
768773
configure_system(host,
769774
compiler=args.compiler,
770775
python_version=python_version,
771-
enable_mkldnn=False)
776+
enable_mkldnn=not args.disable_mkldnn)
772777
print("Installing PyTorch wheel")
773778
host.run_cmd("pip3 install torch")
774779
build_domains(host,

0 commit comments

Comments
 (0)