Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to windows #84

Closed
boxerab opened this issue Jun 9, 2017 · 39 comments
Closed

Port to windows #84

boxerab opened this issue Jun 9, 2017 · 39 comments
Assignees

Comments

@boxerab
Copy link

boxerab commented Jun 9, 2017

No description provided.

@VincentSC
Copy link
Contributor

Nope

@bensander
Copy link
Contributor

bensander commented Jun 9, 2017 via email

@boxerab
Copy link
Author

boxerab commented Jun 9, 2017

Is there a plan to port to windows? I have an opencl project that I want to run on nvidia hardware in addition to Radeon, but don't trust the nvidia opencl drivers :) So, would like to port to HIP. But, I really really need to be able to run this on windows.

@boxerab
Copy link
Author

boxerab commented Jun 9, 2017

Unless I can cross-compile to windows

@boxerab
Copy link
Author

boxerab commented Jun 9, 2017

Also, given that nvidia no longer supports profiling opencl kernels :)

@bensander
Copy link
Contributor

bensander commented Jun 9, 2017 via email

@boxerab
Copy link
Author

boxerab commented Jun 9, 2017

Thanks, Ben. It would clearly help a lot with HIP adoption, but of course you guys have a lot on your plates at the moment.

@boxerab boxerab closed this as completed Jun 9, 2017
@boxerab boxerab reopened this Jun 14, 2017
@boxerab
Copy link
Author

boxerab commented Jun 26, 2017

Just want to re-iterate : there are a lot of CUDA developers using Windows! So, porting to windows will really speed up adoption, and create a large pool of HIP developers.

@dtmoodie
Copy link

I'll add that I will port my entire computer vision platform to hip if Windows support is added.

@boxerab
Copy link
Author

boxerab commented Jul 27, 2017

By the way, I have some time to work on this port to windows.

@emankov
Copy link
Contributor

emankov commented Jul 27, 2017

hipfy-clang tool can be built on Windows by MS VS 15, 17, so hipification (porting CUDA->HIP) might be performed on Windows, but not the running of the hipified code.

@dtmoodie
Copy link

What would be required to run it? I've heard mention that it is an OS level issue. Which strikes me as odd if we can launch opencl and cuda kernels with current facilities on Windows.

@bensander
Copy link
Contributor

The HIP runtime uses the HSA Runtime and HCC runtime for event and code management, and HCC uses the HSA Runtime to communicate with the kernel driver. To run HIP applications on Windows, we need a HSA runtime implementation for Windows. Also we need HCC compiler to run on windows. This is fair amount of work, but we hear the requests and have some internal efforts in this direction.

@boxerab
Copy link
Author

boxerab commented Jul 27, 2017

Thanks, Ben. As I said earlier, we realize you guys are busy! Very glad to see the company realizing how important software ecosystem is, especially open one.

In the meantime, I guess a simple interim solution would be to allow HIP code on windows to run on Green team only i.e. disable Radeon backend and only use NVCC etc. for windows. Would that work ?
Not ideal, of course.

@bensander bensander self-assigned this Jul 27, 2017
@boxerab boxerab changed the title Does this run on windows ? Port to windows Jul 28, 2017
@boxerab
Copy link
Author

boxerab commented Aug 1, 2017

Personally, I already have an OpenCL solution for AMD cards on windows, so I guess the simplest
approach for supporting nVidia on windows is to use a wrapper that redirects hip calls to cuda calls, and re-write some of the host code.

@boxerab
Copy link
Author

boxerab commented Nov 20, 2017

Hi Ben,
Does closing this issue mean that there is no windows port planned ?

Kind Regards,
Aaron

@bensander
Copy link
Contributor

Hi Aaron - we are aware of the interest in this from several people and we will have it eventually. We will share more concrete roadmap when possible.

@boxerab
Copy link
Author

boxerab commented Nov 20, 2017

Thanks.

@VincentSC
Copy link
Contributor

Is there an update on this?

@oscarbg
Copy link

oscarbg commented Aug 11, 2018

Hope after 1.9 release this month, ROCM 2.0 beta at SC18 comes with some Windows HIP support (rocblas,fft,prim,solver libs)

@ghostplant
Copy link

ghostplant commented Apr 30, 2019

@bensander To begin with, can we just make hcc work as a cross compiler on Windows? I think it is based on clang, and doesn't even require HSA runtime (maybe just some HSA headers would be OK). I need something like a HSACO cross-compiler that is able to build them on Windows.

If not, how about open-source LLVM-9, since it can generate different target codes and it also has Windows release version.

@bensander
Copy link
Contributor

Upstream clang has support for hip language - we polishing this solution and release soon. But remind me which problem you are trying to solve ?

@ghostplant
Copy link

@bensander I want an HIP cross-compiler compiled at Windows platform, thus allowing Windows supporting partial HIP stack.

@bensander
Copy link
Contributor

Us too ! I anticipate you will see this from AMD in the next few months. Both compiler and runtime.

@ghostplant
Copy link

@bensander Great news! Eager to see this awesome progress soon.

@JessubKim
Copy link

JessubKim commented Jul 12, 2019

Just found out why HCC compiler support on windows could be so useful. This would enable compilation of SyCL code in Nvidia GPU's in Windows using HipSyCL which uses AMD HIP to map SyCL codes.
Very much looking forward to this being released

@Degerz
Copy link

Degerz commented Jul 29, 2019

@bensander Have both the compiler and the runtime released yet and if not is it possible to get an ETA for them ?

@stefan-gavranovic
Copy link

@bensander Any update on this would be much appreciated.
I see that hipify-clang is working on Windows, but what good is that if HCC is not supported?

@Hendiadyoin1
Copy link

Hendiadyoin1 commented Jun 28, 2020

So you are able to install all libraries on wsl2 see the wsl repo
though mainly supporting cuda
is there any move from the amd guys to enable it via the wsl

another thread

@IIIBlueberry
Copy link

IIIBlueberry commented Jan 13, 2021

@bensander Any update on this would be much appreciated.
I see that hipify-clang is working on Windows, but what good is that if HCC is not supported?

Someone found out amd has been shipping "amdhip.dll" on their driver, and able to run some HIP apps(bandwith test, device query ) on windows
AdaptiveCpp/AdaptiveCpp#78 (comment)

@ghostplant
Copy link

@IIIBlueberry Currently https://github.com/microsoft/antares is able to enable and evaluate ROCm Kernel execution workload on Windows 10. The evaluation branch is activated by BACKEND=c-rocm_win64, as long as the driver file "amdhip.dll" works on your system.

@IIIBlueberry
Copy link

@ghostplant wow this great, will this mean we can have ROCm on windows soon?

@ghostplant
Copy link

You can just use it at the level of driver API calls, which is enough to accelerate what Linux ROCm can accelerate.
But AMD officially doesn't support much more other than that.

@xuhuisheng
Copy link

@ghostplant
Thank you for showing that microsoft had plan to support ROCm on windows.
I had a question how can I get C:\Windows\System32\amdhip64.dll, is there any redistribution packages? Or should I compile hip on windows by myself?
Is there any guides for this?

@ghostplant
Copy link

C:\Windows\System32\amdhip64.dll is provided by latest AMDGPU driver that can work on Windows.

@Sephirothbahamut
Copy link

Are there any news on the topic? Having access to HIP on Windows would still be huge...

@EzeAGB
Copy link

EzeAGB commented Sep 4, 2022

Please add support for Windows.

@Sp3ci3s8472
Copy link

With stable diffusion getting all the hype at the moment I would assume this issue would get more focus, or that WSL in combination with Docker would allow users to use ROCm on Windows. Sadly I have to use a Nvidia gpu with not a lot of VRAM while my 6900 XT sits idle.

@Enferlain
Copy link

Same. I've been following these topics and hoping for an update. I love my 6800xt but I can't do anything on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests