ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
The dawn of libre machine
learning
Hacking MIOpen to get it run on other GPUs and the importance of libre ML
library
Hacking AMD MIOpen to run anywhere
Current State
Current State
? Nvidia Nvidia Nvidia Nvidia
? Nvidia Nvidia Nvidia
? Nvidia Nvidia Nvidia
? Nvidia Nvidia
? Nvidia Nvidia Nvidia Nvidia
MIOpen
? AMD's neural net acceleration library
? GPU accelerated
? MIT Licsence
MIOpen
? AMD's neural net acceleration library
? GPU accelerated
? MIT Licsence
? OpenCL and HIP
? Only works on AMD GPUs for some reason
Trying to build
? On Linux with GTX 970
? Won't build. ROCm not found
? But ROCm not included anywhere
Hack it
? Remove ROCm from build script
? It build! But test crashes. Q_Q
? with std::bad_aclloc ?
? dafaq?
Hack it
? Remove ROCm from build script
? It build! But test crashes. Q_Q
? with std::bad_aclloc ?
? dafaq?
? OpenCL API misused
More hack
It cheks for AMD GPUs
? Even if the kernel code allows non AMD GPU
? Remove checks
? 8/10 test pass
Buffer Overflow
? Buffer overflow on GPU.
? 2x too small
? make it larger
Hacking AMD MIOpen to run anywhere
Buffer Overflow
? Bufferoverflow on GPU.
? 2x too small
? make it larger
? AMD: WORKSFORME
Now
? Runs on Nvidia GPU
? and Intel CPU/GPU
? VIA CPU/GPU(?)
? Anywhere with OpenCL
Future work
? Windows and OS X support
? Build community
? Acuatlly USE it
Future work
? Windows and OS X support
? Build community
? Acuatlly USE it
? Break the monopoly
? Repo:
? https://github.com/marty1885/MIOpen
? Reach me at:
? marty188586@gmail.com
? Facebook ID: marty1885
? Telegram: marty1885
? Repo:
? https://github.com/marty1885/MIOpen
? Reach me at:
? marty188586@gmail.com
? Facebook ID: marty1885
? Telegram: marty1885
Need a RX Vega or RX 580
Any donation?

More Related Content

Hacking AMD MIOpen to run anywhere