Created
March 9, 2021 13:17
-
-
Save dcominottim/6056129c997928f3960d30b842593fad to your computer and use it in GitHub Desktop.
How to set up Conda, tensorflow, MKL/BLIS, and AI-Benchmark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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