GithubHelp home page GithubHelp logo

Comments (4)

yxsamliu avatar yxsamliu commented on August 11, 2024

These are number of VGPR's per CU.

It is eventually from:

https://github.com/ROCm-Developer-Tools/clr/blob/1338ff37e89b4d1fb36d23d48ccdf55998e15df5/rocclr/device/rocm/rocdevice.cpp#L1706

https://github.com/ROCm-Developer-Tools/clr/blob/1338ff37e89b4d1fb36d23d48ccdf55998e15df5/rocclr/device/rocm/rocdevice.cpp#L1702

https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/blob/8276083301409001ec7643e68f5ad58b057c21fd/lib/comgr/src/comgr-isa-metadata.def#L49

from hip.

maartenarnst avatar maartenarnst commented on August 11, 2024

Hi @yxsamliu. Thanks a lot for your help! That's indeed exactly what I was looking for.

In my code, I'm now retrieving the number of VGPRs and SGPRs from the comgr, by proceeding similarly as in the code in rocdevice.cpp that you had referred me to.

I found that most of the functions used in rocdevice.cpp are available from the api in amd_comgr/amd_comgr.h. However, the function getValueFromIsaMeta is in rocdevice.cpp but it appears it's not in amd_comgr/amd_comgr.h. So it might be a suggestion to try to include this function in amd_comgr/amd_comgr.h. I'd be happy to post it as a suggestion on a GitHub repository, but it seems RadeonOpenCompute/llvm-project/tree/amd-stg-open/amd/comgr doesn't accept issues.

from hip.

yxsamliu avatar yxsamliu commented on August 11, 2024

comgr was migrated from https://github.com/RadeonOpenCompute/ROCm-CompilerSupport

You may open an issue there

from hip.

kjayapra-amd avatar kjayapra-amd commented on August 11, 2024

Closing the issue, since this is not related to HIP.
Please open a ticket https://github.com/RadeonOpenCompute/ROCm-CompilerSupport here as @yxsamliu suggested.

from hip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.