ROCm / HIP

HIP: C++ Heterogeneous-Compute Interface for Portability
https://rocmdocs.amd.com/projects/HIP/
MIT License
3.55k stars 519 forks source link

[Documentation]: No actual guide for properly getting started working with this #3453

Closed The-Lord-of-Owls closed 2 months ago

The-Lord-of-Owls commented 2 months ago

Description of errors

Steps I've taken so far:

  1. So far I managed to install HIP using the installer found from here
  2. Created a new empty C++ project in VS2022
  3. Attempt to find a gist.github.com example for using ROCm/HIP/What ever it is that lets me just use an LLM on a GPU
  4. Gave up searching gist, searched documentation for some kind of actual working example(Found none, not even a hello world that runs on a GPU with this thing)
  5. Search youtube, find nothing that actually showed how to do this either. just a few AMD vids that explained concepts but didn't go through writing an actual program with it.
  6. Loaded up LM Studio and used LLama 3 to try and generate an example in hopes that I could use an AI to teach me how to use this thing so that I can use an AI. AI failed to produce a working example, forced me to hunt down what headers were missing from being included. Still didn't work after finding the right headers to include from standard library and GLM

It would be really nice to just get a working example or tutorial that properly explains how to get started.

Attach any links, screenshots, or additional evidence you think will be helpful.

No response

kjayapra-amd commented 2 months ago

Hi, Thanks for the feedback. We have HIP samples - https://github.com/ROCm/hip-tests/tree/develop/samples, which provides some examples on how to compile and run. Please let me know if this works.

Your feedback on lack of examples on other mediums are noted.

kjayapra-amd commented 2 months ago

Please re-open if you have more concerns.