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

Build CuPy against ROCm? #11

Closed
leofang opened this issue Nov 11, 2019 · 5 comments
Closed

Build CuPy against ROCm? #11

leofang opened this issue Nov 11, 2019 · 5 comments

Comments

@leofang
Copy link
Member

leofang commented Nov 11, 2019

This issue won't be resolvable in the foreseeable future (at least I don't think so -- lots of extra work and time investment are needed), but it's still worth being kept track.

CuPy recently adds experimental support for ROCm (targeting AMD GPUs): https://docs-cupy.chainer.org/en/latest/install_rocm.html.

Now, there's a roctools from Numba: https://anaconda.org/numba/roctools, but based on the Numba issue tracker and the download times, I doubt it's been extensively tested. Moreover, it doesn't provide the full ROCm software stack, just some LLVM bindings. Users still need to install the ROCm environment themselves: http://numba.pydata.org/numba-doc/latest/roc/overview.html#installation.

For CuPy + ROCm to work in conda, I imagine we need the following things to work:

  • a ROCm compiler stack supported by Anaconda (as NVCC is now)
  • a ROCm counterpart for cudatoolkit (can roctools be reused here?)
  • some docker images that support ROCm
  • some ROCm-enabled CI infrastructure for building, testing and shipping the recipe

Disclaimer: I know nothing about ROCm. 🙂

@isuruf
Copy link
Member

isuruf commented Nov 19, 2019

ROCM compiler stack is on conda-forge, conda-forge/staged-recipes#10123

@leofang
Copy link
Member Author

leofang commented Nov 19, 2019

Cool, thanks for the info @isuruf! Any estimation for when the ROCm support will be up and running?

@isuruf
Copy link
Member

isuruf commented Nov 19, 2019

According to cupy docs, we need hipblas hipsparse rocrand. I'm waiting on ROCm/clang-ocl#18 to go further.

@leofang
Copy link
Member Author

leofang commented Dec 24, 2019

According to cupy docs, we need hipblas hipsparse rocrand.

A quick update: rocthrust is also needed now.

@leofang
Copy link
Member Author

leofang commented Jul 28, 2021

Due to 1. lack of interest from AMD, 2. lack of bandwidth, 3. potential conflict of interests, I am closing this issue as "won't fix".

@leofang leofang closed this as completed Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants