Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dcominottim/6056129c997928f3960d30b842593fad to your computer and use it in GitHub Desktop.

Select an option

Save dcominottim/6056129c997928f3960d30b842593fad to your computer and use it in GitHub Desktop.
How to set up Conda, tensorflow, MKL/BLIS, and AI-Benchmark
# download miniconda from
# https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
# open an elevated Miniconda terminal (will appear on Windows' Start Screen/Menu)
# create a separate, virtual Python env for MKL
conda create --name aib-mkl
# switch to the newly created env
conda activate aib-mkl
# install dependencies (tensorflow and MKL); here I'd capture the list of to-be-installed packages and versions
conda install tensorflow mkl
# ALTERNATIVE: install dependencies with BLIS instead of MKL for a second run
conda install -c conda-forge tensorflow blis "blas=*=blis"
# install ai-benchmark
pip3 install ai-benchmark
# Type python in the command line
python
# run the following commands in the opened console
from ai_benchmark import AIBenchmark
results = AIBenchmark().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment