Skip to content

Instantly share code, notes, and snippets.

View mwrnd's full-sized avatar

Matthew Wielgus mwrnd

  • Toronto, Canada
View GitHub Profile
@mwrnd
mwrnd / cmds.py
Created October 16, 2019 14:36
Generate permutations of command-line calls to tensorflow/benchmark's tf_cnn_benchmarks.py script.
"""
Purpose: Generate permutations of command-line calls to
tensorflow/benchmark's tf_cnn_benchmarks.py script.
Usage: 0) place this file in /benchmarks/scripts/tf_cnn_benchmarks
1) python cmds.py > benchmarkcommands
2) bash -x <benchmarkcommands 2>&1 | tee benchmarklog
Notes: - XLA and ROCM are options specific to AMD's ROCm
- the associated parse.py will parse log output into summary form
@mwrnd
mwrnd / gist:7931accea091b6dcf5f95348025c525e
Created October 16, 2019 14:42
Process the output logs of multiple calls to tensorflow/benchmark's tf_cnn_benchmarks.py script into an easy-to-read summary.
"""
# Copyright 2019 Matthew Wielgus. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@mwrnd
mwrnd / benchmark_results_RX570_ROCm2.8.13
Last active October 23, 2019 20:21
AMD Radeon RX 570 Tensorflow benchmarking results with ROCm 2.8.13
Video Card: AMD Radeon RX 570 8GB OC (rocm-smi -v VBIOS version: 113V34122-F3)
Motherboard: MSI X570-A Pro with 32GB DDR4-3000 BIOS H.40
Processor: AMD Ryzen 5 3600X
OS: Ubuntu 18.04.2 no apt dist-upgrade
Kernel: 4.18.0-15-generic
rocm-dkms: 2.8.13 installed through apt
tensorflow-rocm: 1.14.2 installed through pip
tensorflow benchmarks: abb1aec2f2db4ba73fac2e1359227aef59b10258
https://codeload.github.com/tensorflow/benchmarks/zip/abb1aec2f2db4ba73fac2e1359227aef59b10258
tensorflow_models: 1.13.0
@mwrnd
mwrnd / rocm_install_notes
Created October 16, 2019 14:56
AMD ROCm Installation Notes
sudo apt-get update
sudo apt-get upgrade
sudo reboot
**** NOTE: did not install 5.0 kernel image; did not run dist-upgrade
sudo gedit /etc/default/grub
--> change the following
GRUB_TIMEOUT=1
GRUB_CMDLINE_LINUX_DEFAULT=""
@mwrnd
mwrnd / parse.py
Created October 16, 2019 14:57
Process the output logs of multiple calls to tensorflow/benchmark's tf_cnn_benchmarks.py script into an easy-to-read summary.
"""
# Copyright 2019 Matthew Wielgus. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@mwrnd
mwrnd / benchmark_results_RX580_ROCm2.8.13
Last active October 23, 2019 20:19
AMD Radeon RX 580 Tensorflow benchmarking results with ROCm 2.8.13
AMD Radeon RX 580 8GB tensorflow/benchmarks Results
By Matthew Wielgus 2019-10-22
Video Card: MSI Radeon RX 580 8GB ARMOR OC (rocm-smi -v VBIOS version: Unable to get)
Motherboard: MSI X570-A Pro with 32GB DDR4-3000 BIOS H.40
Processor: AMD Ryzen 5 3600X
OS: Ubuntu 18.04.2 no apt dist-upgrade
Kernel: 4.18.0-15-generic
rocm-dkms: 2.8.13 installed through apt
tensorflow-rocm: 1.14.2 installed through pip
@mwrnd
mwrnd / benchmark_results_RX580_ROCm1.9.3
Created October 23, 2019 20:19
AMD Radeon RX 580 Tensorflow benchmarking results with ROCm 1.9.3
AMD Radeon RX 580 8GB tensorflow/benchmarks Results
By Matthew Wielgus 2019-10-22
Video Card: MSI Radeon RX 580 8GB ARMOR OC (rocm-smi -v Cannot get VBIOS version)
Motherboard: MSI X570-A Pro with 32GB DDR4-2133 BIOS H.40
Processor: AMD Ryzen 5 3600X
OS: Ubuntu 18.04.0 no apt upgrade or apt dist-upgrade
Kernel: 4.15.0-20-generic
rocm-dkms: 1.9.3 installed through apt
@mwrnd
mwrnd / cmds.py
Created October 23, 2019 20:23
Generate permutations of command-line calls to tensorflow/benchmark's tf_cnn_benchmarks.py script.
"""
Purpose: Generate permutations of command-line calls to
tensorflow/benchmark's tf_cnn_benchmarks.py script.
Usage: 00) sudo pip install future
0) place this file in /benchmarks/scripts/tf_cnn_benchmarks
1) python cmds.py > benchmarkcommands
2) bash -x <benchmarkcommands 2>&1 | tee benchmarklog
Notes: - XLA and ROCM are options specific to AMD's ROCm
@mwrnd
mwrnd / parse.py
Created October 23, 2019 20:25
Process the output logs of multiple calls to tensorflow/benchmark's tf_cnn_benchmarks.py script into an easy-to-read summary.
"""
# Copyright 2019 Matthew Wielgus. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@mwrnd
mwrnd / parse.py
Last active April 12, 2020 06:35
Process the output logs of multiple calls to tensorflow/benchmark's tf_cnn_benchmarks.py v2.1 script into an easy-to-read summary.
"""
# Copyright 2020 Matthew Wielgus. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software