Skip to content

Instantly share code, notes, and snippets.

@neibla
Created June 30, 2021 02:47
Show Gist options
  • Save neibla/510b46081007b20c776ca2a06439c29f to your computer and use it in GitHub Desktop.
Save neibla/510b46081007b20c776ca2a06439c29f to your computer and use it in GitHub Desktop.
Setting up Tensorflow with AMD GPU on Macos via metal
https://developer.apple.com/metal/tensorflow-plugin/
virtualenv -p /usr/bin/python3 myenv
source myenv/bin/activate
python -m pip install -U pip
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
pip install tensorflow-macos
pip install tensorflow-metal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment