Skip to content

Commit 2b5264f

Browse files
authored
Add ffmpeg build to audio aarch64 (#1396)
1 parent fc41ad9 commit 2b5264f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

aarch64_linux/build_aarch64_wheel.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ def build_torchvision(host: RemoteHost, *,
294294
"v1.13.0": ("0.14.0", "rc4"),
295295
"v1.13.1": ("0.14.1", "rc2"),
296296
"v2.0.0": ("0.15.1", "rc2"),
297+
"v2.0.1": ("0.15.2", "rc2"),
297298
})
298299
print("Building TorchVision wheel")
299300

@@ -346,6 +347,7 @@ def build_torchdata(host: RemoteHost, *,
346347
mapping={
347348
"v1.13.1": ("0.5.1", ""),
348349
"v2.0.0": ("0.6.0", "rc5"),
350+
"v2.0.1": ("0.6.1", "rc1"),
349351
})
350352
print('Building TorchData wheel')
351353
build_vars = ""
@@ -389,6 +391,7 @@ def build_torchtext(host: RemoteHost, *,
389391
"v1.13.0": ("0.14.0", "rc3"),
390392
"v1.13.1": ("0.14.1", "rc1"),
391393
"v2.0.0": ("0.15.1", "rc2"),
394+
"v2.0.1": ("0.15.2", "rc2"),
392395
})
393396
print('Building TorchText wheel')
394397
build_vars = ""
@@ -432,6 +435,7 @@ def build_torchaudio(host: RemoteHost, *,
432435
"v1.13.0": ("0.13.0", "rc4"),
433436
"v1.13.1": ("0.13.1", "rc2"),
434437
"v2.0.0": ("2.0.1", "rc3"),
438+
"v2.0.1": ("2.0.2", "rc2"),
435439
})
436440
print('Building TorchAudio wheel')
437441
build_vars = ""
@@ -444,7 +448,10 @@ def build_torchaudio(host: RemoteHost, *,
444448
if host.using_docker():
445449
build_vars += " CMAKE_SHARED_LINKER_FLAGS=-Wl,-z,max-page-size=0x10000"
446450

447-
host.run_cmd(f"cd audio && {build_vars} python3 setup.py bdist_wheel")
451+
host.run_cmd(f"cd audio && export FFMPEG_ROOT=$(pwd)/third_party/ffmpeg && export USE_FFMPEG=1 \
452+
&& ./packaging/ffmpeg/build.sh \
453+
&& {build_vars} python3 setup.py bdist_wheel")
454+
448455
wheel_name = host.list_dir("audio/dist")[0]
449456
embed_libgomp(host, use_conda, os.path.join('audio', 'dist', wheel_name))
450457

0 commit comments

Comments
 (0)