1. 05 Jan, 2022 1 commit
    • moto's avatar
      Update ffmpeg discovery logic (#2124) · d8a65450
      moto authored
      Summary:
      Update ffmpeg discovery logic
      
      Previously the build process used pkg-config to locate
      an installation of ffmpeg, which does not work well Windows/CentOS.
      
      This commit update the discovery process to use the custom
      FindFFMPEG.cmake adopted from Kitware/VTK repository with addition of
      conda environment.
      
       The custom discovery logic can support Windows and CentOS.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2124
      
      Reviewed By: carolineechen
      
      Differential Revision: D33429564
      
      Pulled By: mthrok
      
      fbshipit-source-id: 6cb50c1d8c58f51e0f3f3af5c5b541aa3a699bba
      d8a65450
  2. 04 Jan, 2022 1 commit
    • moto's avatar
      [CI] Install tools from conda instead of brew (#1873) · df0175e8
      moto authored
      Summary:
      Currently, macOS CI jobs install `pkg-config` and `wget` with `brew`.
      This is problematic as brew takes a long time with auto-update, and disabling the auto-update is not an ideal solution.
      Conda also distributes these packages, so switching to conda.
      
      Example issues with brew installation.
      https://app.circleci.com/pipelines/github/pytorch/audio/7825/workflows/53965bcf-6ddf-4e42-ad52-83fd1bbab717
      
      This commit removes the use of `brew` by
      1. Replacing the use of `wget` with `curl` (pre-installed in most distro)
      2. Install `pkg-condig` from conda.
          Note: All the macOS jobs, including binary build jobs, uses conda. Using `pkg-config` from Conda makes it easy to discover the packages installed from conda. (like `ffmpeg` in https://github.com/pytorch/audio/issues/2122)
      3. Add `pkg-config` to conda build-time dependency
      4. Make sure that the availability of `pkg-config` is explicitly checked when `sox` is being configured. (otherwise, it will fail at somewhere in the middle of build process with somewhat unintuitve error message)
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/1873
      
      Reviewed By: carolineechen, nateanl
      
      Differential Revision: D33404975
      
      Pulled By: mthrok
      
      fbshipit-source-id: ae512d3a3a422ebfe3b46c492bed44deecc36e72
      df0175e8
  3. 30 Dec, 2021 3 commits
    • moto's avatar
      Build ffmpeg-features in Linux/macOS unittests (#2114) · 9f14fa63
      moto authored
      Summary:
      Preparation to land Python front-end of ffmpeg-related features.
      
      - Set BUILD_FFMPEG=1 in Linux/macOS unit test jobs
      - Install ffmpeg and pkg-config from conda-forge
      - Add note about Windows build process
      - Temporarily avoid `av_err2str`
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2114
      
      Reviewed By: hwangjeff
      
      Differential Revision: D33371346
      
      Pulled By: mthrok
      
      fbshipit-source-id: b0e16a35959a49a2166109068f3e0cbbb836e888
      9f14fa63
    • Joao Gomes's avatar
      Enforce lint checks and fix/mute lint errors (#2116) · 8ed14782
      Joao Gomes authored
      Summary:
      cc mthrok
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2116
      
      Reviewed By: mthrok
      
      Differential Revision: D33368453
      
      Pulled By: jdsgomes
      
      fbshipit-source-id: 09cf3fe5ed6f771c2f16505633c0e59b0c27453c
      8ed14782
    • moto's avatar
      Add a switch to build ffmpeg binding (#2048) · ece03edc
      moto authored
      Summary:
      This PR adds `BUILD_FFMPEG` switch to torchaudio build process so that features related to ffmpeg are built.
      The flag is false by default, so no CI jobs or development flow are affected.
      
      This is because handling the dependencies around ffmpeg is a bit tricky.
      Currently, the CMake file uses `pkg-config` to find an ffmpeg installation in the system.
      This works fine for both conda-based installation and system-managed installation (like `apt`).
      
      In subsequent PRs, I will find a solution that works for local development and binary distributions.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2048
      
      Reviewed By: hwangjeff, nateanl
      
      Differential Revision: D33367260
      
      Pulled By: mthrok
      
      fbshipit-source-id: 94517acecb62bd6d4e96d4b7cbc3ab3c2a25706c
      ece03edc
  4. 20 Dec, 2021 2 commits
  5. 18 Dec, 2021 1 commit
  6. 17 Dec, 2021 1 commit
    • moto's avatar
      Add static build of KenLM (#2076) · adc559a8
      moto authored
      Summary:
      Add KenLM and its dependencies required for static build (`zlib`, `bzip2`, `lzma` and `boost-thread`).
      
      The KenLM and its dependencies are build but since no corresponding code on torchaudio side is changed, the resulting torchaudio extension module is not changed. (therefore, as long as build process passes on CI this PR should be good to go.)
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2076
      
      Reviewed By: carolineechen
      
      Differential Revision: D33189980
      
      Pulled By: mthrok
      
      fbshipit-source-id: 6096113128b939f3cf70990c99aacc4aaa954584
      adc559a8
  7. 31 Aug, 2021 1 commit
    • Nikita Shulga's avatar
      Fix CUDA build logic for _torchaudio.so (#1737) · e3c082b7
      Nikita Shulga authored
      It's wrong to depend on `${TORCH_LIBRARIES}` as it pulls in explicit
      `libcuda.so.1` dependency, which violates the assumption that GPU
      accelerated libraries should be loadable with no NVIDIA drivers installed
      
      Instead, make it depend on `torch` target, which includes all necessary
      Torch C++ API dependences
      e3c082b7
  8. 18 Aug, 2021 1 commit
    • moto's avatar
      Guard Kaldi's version generation (#1715) · df9d0b47
      moto authored
      When building torchaudio from source, `get_version.sh` from kaldi is executed everytime,
      which results in kaldi-bindings to be always rebuilt.
      
      This commit add "if" guard to the part so that they are not always executed.
      df9d0b47
  9. 28 Jun, 2021 1 commit
  10. 25 May, 2021 1 commit
  11. 30 Apr, 2021 1 commit
  12. 19 Apr, 2021 1 commit
  13. 02 Mar, 2021 1 commit
  14. 23 Feb, 2021 1 commit
  15. 09 Feb, 2021 1 commit
  16. 04 Feb, 2021 1 commit
  17. 21 Jan, 2021 1 commit
  18. 09 Jan, 2021 2 commits
  19. 05 Jan, 2021 2 commits
  20. 22 Dec, 2020 1 commit
  21. 08 Dec, 2020 1 commit
  22. 04 Dec, 2020 1 commit
  23. 20 Nov, 2020 1 commit
    • moto's avatar
      Temporarily Disable OpenMP support for libsox (#1026) · 75804859
      moto authored
      Currently `libsox` on Linux is compiled with GPU OpenMP and it interferes with the version PyTorch uses (Intel in case of binary distribution). This PR disables OpenMP support for `libsox`, while we investigate the way to use the same OpenMP as PyTorch's version.
      75804859
  24. 01 Jul, 2020 2 commits