• moto's avatar
    Fix MKL issue on Intel mac build (#3307) · 3e897ca7
    moto authored
    Summary:
    * Remove MKL and NumPy from Conda build env
    * Remove `caffe2::mkl` dependency from `torch_cpu`, which introduced unnecessary and undesided dependency on Intel mac.
    
    TorchAudio does not use BLAS libraries directly, thus all the mentions to MKL should be removed from the codebase.
    However, this was causing an issue on Intel mac. It turned out that `torch_cpu` target is pulling `caffe2::mkl` dependency, and the linker on macOS keeps library dependency even if no symbol from that library is used. This stray mkl dependency should be fixed on core side, but also we can modify the target temporarily and remove them.
    
    Also we don't need NumPy on build/run time, so that is removed as well.
    
    Pull Request resolved: https://github.com/pytorch/audio/pull/3307
    
    Reviewed By: atalman
    
    Differential Revision: D45606944
    
    Pulled By: mthrok
    
    fbshipit-source-id: 853411ccbbca31796b808a2b052b4cfa564718cd
    3e897ca7
TorchAudioHelper.cmake 2.86 KB