[go: nahoru, domu]

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

Using HIP instead of CUDA (work on all graphics card) #41360

Open
labidus opened this issue Jul 14, 2020 · 2 comments
Open

Using HIP instead of CUDA (work on all graphics card) #41360

labidus opened this issue Jul 14, 2020 · 2 comments
Assignees
Labels
comp:gpu GPU related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower type:feature Feature requests

Comments

@labidus
Copy link
labidus commented Jul 14, 2020

Since half of the developers can use an AMD card or an old NVIDIA card, if that append, you cannot use the GPU with CUDA.

System information

  • TensorFlow version: ALL
  • Are you willing to contribute it (Yes/No): YES

Describe the feature and the current behavior/state.

HIP is a C++ Runtime API and Kernel Language that allows developers to create portable applications for AMD and NVIDIA GPUs from single source code.

Key features include:

HIP is very thin and has little or no performance impact over coding directly in CUDA or hcc "HC" mode.
HIP allows coding in a single-source C++ programming language including features such as templates, C++11 lambdas, classes, namespaces, and more.
HIP allows developers to use the "best" development environment and tools on each target platform.

The HIPIFY tools automatically convert source from CUDA to HIP.
Developers can specialize for the platform (CUDA or hcc) to tune for performance or handle tricky cases
New projects can be developed directly in the portable HIP C++ language and can run on either NVIDIA or AMD platforms.

Additionally, HIP provides porting tools which make it easy to port existing CUDA codes to the HIP layer, with no loss of performance as compared to the original CUDA application. HIP is not intended to be a drop-in replacement for CUDA, and developers should expect to do some manual coding and performance tuning work to complete the port.

[https://github.com/ROCm-Developer-Tools/HIP]

Will this change the current api? How? NO

Who will benefit with this feature? ALL

@labidus labidus added the type:feature Feature requests label Jul 14, 2020
@David-Gan
Copy link

This is great!

@amahendrakar amahendrakar added the comp:gpu GPU related issues label Jul 14, 2020
@gowthamkpr gowthamkpr assigned sanjoy and unassigned gowthamkpr Jul 14, 2020
@gowthamkpr gowthamkpr added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Jul 14, 2020
@acxz
Copy link
Contributor
acxz commented Sep 5, 2020

You can already compile with HIP, see https://github.com/rocm-arch/tensorflow-rocm/blob/master/PKGBUILD as a reference installation guide.

I believe this issue can be closed,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:gpu GPU related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower type:feature Feature requests
Projects
None yet
Development

No branches or pull requests

6 participants