Comments (22)
It actually exists but not publicly available
https://wiki.blender.org/wiki/Building_Blender/GPU_Binaries#AMD
from antares.
Yes. It has been supported by the end of 2020, as long as you have an AMDGPU that satisfy ROCm's official supported list, e.g. Radeon7, Vega64, etc.
You need to install latest AMD driver for Windows (version >= 2020.12), after you complete the AMD driver installation, you should see there is a runtime library
C:\Windows\System32\amdhip64.dll
. This means you can interactive with it to execute ROCm workloads.Antares has already been able to interactive with this runtime library directly. What you need is:
- Install latest AMD driver for Win10 to ensure
C:\Windows\System32\amdhip64.dll
exists.- Install WSL1.0 based on Ubuntu 18.04/20.04 image.
- In WSL1.0, install Antares dependent packages:
sudo apt install git python3-pip g++ make g++-mingw-w64-x86-64
- Then in WSL1.0, clone Antares and type some examples to run by ROCm, e.g.
BACKEND=c-rocm_win64 make
OKay, that sounds amazing... Let me have a try and thanks a lot!
from antares.
Yes. It has been supported by the end of 2020, as long as you have an AMDGPU that satisfy ROCm's official supported list, e.g. Radeon7, Vega64, etc.
You need to install latest AMD driver for Windows (version >= 2020.12), after you complete the AMD driver installation, you should see there is a runtime library C:\Windows\System32\amdhip64.dll
. This means you can interactive with it to execute ROCm workloads.
Antares has already been able to interactive with this runtime library directly. What you need is:
- Install latest AMD driver for Win10 to ensure
C:\Windows\System32\amdhip64.dll
exists. - Install WSL1.0 based on Ubuntu 18.04/20.04 image.
- In WSL1.0, install Antares dependent packages:
sudo apt install git python3-pip g++ make g++-mingw-w64-x86-64
- Next, using git in WSL1.0 to clone Antares and try some examples executed by ROCm backend, e.g.
BACKEND=c-rocm_win64 make
from antares.
Can I use this with WSL2 or does it need to be WSL1?
from antares.
@Column01 I didn't try whether it can work in WSL2. I'll verify it later.
from antares.
@Column01 WSL2 should work since this PR (#282), which makes two backends DirectX12 & ROCm work in both WSL1 and WSL2.
Because it is for WSL instead of real Linux, so by default, it will work using DirectX12 for acceleration whose backend name is c-hlsl_win64
.
If you explicitly set export BACKEND=c-rocm_win64
or BACKEND=c-rocm_win64 make
, it will recognize this backend change and be going to work using Windows-side AMD ROCm driver.
Note that Windows-side AMD ROCm driver only provide runtime instead of HIP compiler, so we still need to install rocm-dev
in WSL according to ROCm Official Guide which would be only used to compile the C-based source code.
from antares.
Hmm. Maybe I'm misunderstanding but would this let me run PyTorch using ROCm on windows? I'm pretty new to ML and GPU computing in general.
Basically I guess my question is would this only be for compiling ROCm code I've written to work on Windows or could it let me run linux ROCm code on windows and in this case, PyTorch?
Assuming I install it under WSL2 and run this, PyTorch should see my AMD gpu correct?
from antares.
@Column01 Antares is not a virtual machine but device code generator and optimizer for devices it covers. So your understanding of letting you to run "ROCm device kernel" using "native Windows AMDGPU" is correct, and it is not the component to make the full-stack of ROCm to work in WSL as Linux mode.
Briefly, this c-rocm_win64
backend will satisfy customers who have "Windows OS + ROCm GPU" and want Standard Win64 applications to run clean ROCm device code, and Antares will help to generate Windows ROCm device code for that.
from antares.
Briefly, this
c-rocm_win64
backend will satisfy customers who have "Windows OS + ROCm GPU" and want Standard Win64 applications to run clean ROCm device code, and Antares will help to generate Windows ROCm device code for that.
can i run HIP code with this?
from antares.
Yes, Just try this in windows WSL.
pip3 install --upgrade antares
BACKEND=c-rocm_win64 antares
from antares.
i will, it's just that i have gfx1031 and there is no official support for it afaik, but it seems i can compile with flags to enable support on gfx1031, should i try and compile rocm with support for gfx1031? or does wsl2 helps with this?
from antares.
Yes, Just try this in windows WSL.
pip3 install --upgrade antares BACKEND=c-rocm_win64 antares
i have an gfx1031 and there is no official support for it. It seems i can compile rocm with flags to enable support on gfx1031 since it gfx1030 is currently supported, should i try and compile rocm with support for gfx1031? or does wsl2 helps with this?
from antares.
Yes, Just try this in windows WSL.
pip3 install --upgrade antares BACKEND=c-rocm_win64 antaresi have an gfx1031 and there is no official support for it. It seems i can compile rocm with flags to enable support on gfx1031 since it gfx1030 is currently supported, should i try and compile rocm with support for gfx1031? or does wsl2 helps with this?
You can try that, we even did similar things for gfx1010, which is also not officially supported by HIP, but it can work by Antares
+ Windows 10 WSL 1.0
+ Last version of C:\Windows\System32\amdhip64.dll
.
from antares.
Yes, Just try this in windows WSL.
pip3 install --upgrade antares BACKEND=c-rocm_win64 antaresi have an gfx1031 and there is no official support for it. It seems i can compile rocm with flags to enable support on gfx1031 since it gfx1030 is currently supported, should i try and compile rocm with support for gfx1031? or does wsl2 helps with this?
You can try that, we even did similar things for gfx1010, which is also not officially supported by HIP, but it can work by
Antares
+Windows 10 WSL 1.0
+ Last version ofC:\Windows\System32\amdhip64.dll
.
does it need to be wsl1? or wls2?, also wonderful
from antares.
Current Antares needs to work in WSL, but won't in the future.
from antares.
any news on this?
Would you share how you compiled rocm with support for other cards?
from antares.
any news on this? Would you share how you compiled rocm with support for other cards?
Just follow instructions above, the only difference for other amdgpu is choosing a different gfx number.
from antares.
Was this ever solved definitively? I'm building programs that use PyTorch and gpu acceleration, but apparently PyTorch only supports AMD GPUs on Linux, not Windows. It'd be great to have clear installation instructions to install WSL on conjunction with RocM on Windows to utilize an AMD GPU acceleration! Here's my repo where you can see in my installation instructions that I've been struggling with this for a long time...https://github.com/BBC-Esq/ChromaDB-Plugin-for-LM-Studio
And here's a link to a summary of the possible solutions I've found so far...But using WSL seems the best so far: https://github.com/BBC-Esq/ChromaDB-Plugin-for-LM-Studio/issues/4
from antares.
Was this ever solved definitively? I'm building programs that use PyTorch and gpu acceleration, but apparently PyTorch only supports AMD GPUs on Linux, not Windows. It'd be great to have clear installation instructions to install WSL on conjunction with RocM on Windows to utilize an AMD GPU acceleration! Here's my repo where you can see in my installation instructions that I've been struggling with this for a long time...https://github.com/BBC-Esq/ChromaDB-Plugin-for-LM-Studio
And here's a link to a summary of the possible solutions I've found so far...But using WSL seems the best so far: https://github.com/BBC-Esq/ChromaDB-Plugin-for-LM-Studio/issues/4
Does it depend on Pytorch operators? If all operators can be defintely by yourself, you can use this https://github.com/microsoft/antares#quick-test-1-create-custom-operator-of-your-own-in-pytorch-2 to create and accelerate them by GPU on windows (no longer WSL needed.)
from antares.
Was this ever solved definitively? I'm building programs that use PyTorch and gpu acceleration, but apparently PyTorch only supports AMD GPUs on Linux, not Windows. It'd be great to have clear installation instructions to install WSL on conjunction with RocM on Windows to utilize an AMD GPU acceleration! Here's my repo where you can see in my installation instructions that I've been struggling with this for a long time...https://github.com/BBC-Esq/ChromaDB-Plugin-for-LM-Studio
And here's a link to a summary of the possible solutions I've found so far...But using WSL seems the best so far: https://github.com/BBC-Esq/ChromaDB-Plugin-for-LM-Studio/issues/4
AFAIK Rocm was released for windows, but if you dont have a pro card or a NX1 card you will havve issues and you will have to do other steps to get it working, i dont know which ones doe
from antares.
Was this ever solved definitively? I'm building programs that use PyTorch and gpu acceleration, but apparently PyTorch only supports AMD GPUs on Linux, not Windows. It'd be great to have clear installation instructions to install WSL on conjunction with RocM on Windows to utilize an AMD GPU acceleration! Here's my repo where you can see in my installation instructions that I've been struggling with this for a long time...https://github.com/BBC-Esq/ChromaDB-Plugin-for-LM-Studio
And here's a link to a summary of the possible solutions I've found so far...But using WSL seems the best so far: https://github.com/BBC-Esq/ChromaDB-Plugin-for-LM-Studio/issues/4AFAIK Rocm was released for windows, but if you dont have a pro card or a NX1 card you will havve issues and you will have to do other steps to get it working, i dont know which ones doe
What is the progress? Having SDK already, or supporting Windows applications like Pytorch?
from antares.
What is the progress? Having SDK already, or supporting Windows applications like Pytorch?
Basically, I'm using it to create vector databases and interact with a large language model,
so basic PyTorch stuff. NVIDIA and AMD GPUs are supported on Linux. NVIDIA GPUs are supported on Windows.
The only outlier is that AMD GPUs are not supported on Windows.
Honestly, programming is not my trade, so I don't know what operators even means referring to PyTorch.
Any help would be much appreciated.
from antares.
Related Issues (20)
- Usage with Rocm windows for hip code compilation and documentation HOT 49
- gfx 1031 hip kernel crash HOT 1
- Running ROCm computations on Windows over AMD GPU HOT 14
- This repo is missing important files
- Change the cache directory HOT 4
- [BUG] Tune a bert-base-fp16 failed HOT 1
- [Help Request] How can Antares IR support stride size > 1 's Slice operation? HOT 3
- Can antares assign specified gpus for evaluation? HOT 1
- how can antares surport loop which index doesn't start with 0 HOT 5
- Benchmarks HOT 3
- is it possible c-ocl_*_win64 HOT 15
- Not an issue but a question due to lack of docs. HOT 1
- Fail to compile, when I use "AMDGFX=gfx1031 BACKEND=c-rocm_win64 antares" HOT 9
- The residue of the last issue (#365)
- [Error] error: ‘CHECK_EQ’ was not declared in this scope; did you mean ‘CHECK_OK’? HOT 17
- Assertion error: SDK for `c-rocm_win64` is not configured correctly, HOT 3
- Is this project based on AI? What is the goal of this project? HOT 3
- will this project replace torch-directml? HOT 2
- Is ROCm no longer supported by 0.9.x? HOT 16
- Lack operator implementation for DirectX: torch.abs() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antares.