Skip to content

Conversation

zichguan-amd
Copy link
Collaborator

Motivation

hipTensor only support gfx9, see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support.

Technical Details

Don't build hipTensor examples if CMAKE_HIP_ARCHITECTURES contains anything not gfx9.

Test Plan

Build and run ctest on gfx1100

Test Result

hipTensor examples are not build by default on gfx1100 and are not built unless -DCMAKE_HIP_ARCHITECTURES is set to only contain gfx9 architectures.

Submission Checklist

@zichguan-amd zichguan-amd requested a review from a team as a code owner October 7, 2025 21:29
@adeljo-amd
Copy link
Contributor

@zichguan-amd LGTM, though in the future, we should incorporate some autodetecting setup to avoid manual flags

@zichguan-amd
Copy link
Collaborator Author

@zichguan-amd LGTM, though in the future, we should incorporate some autodetecting setup to avoid manual flags

That would be ideal, I'll get hipTensor team to take a look and see if they have any opinions on this.

@zichguan-amd zichguan-amd self-assigned this Oct 8, 2025
@zichguan-amd
Copy link
Collaborator Author

Hi @cgmillette, is there any recommendations from hipTensor?

@cgmillette
Copy link

Adding the owners of hipTensor, @Ryker0627 and @evedovelli.

enable_language(${ROCM_EXAMPLES_GPU_LANGUAGE})

# see https://rocm.docs.amd.com/projects/hipTensor/en/latest/install/installation.html#gpu-support
set(HIPTENSOR_SUPPORTED_ARCH gfx908 gfx90a gfx942 gfx950)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this list of supported arch should be set by hipTensor, and you could just lookup for the value here, right after the find_package(hiptensor), so when new architectures are supported, no changes are needed here.

I'm creating an internal ticket for hipTensor for us to provide this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any ETA for that? Or should I go ahead and merge the PR for now?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go ahead and merge it, so you don't get blocked. Once it's done I can let you know, so you can change the examples, or I can submit a PR for the examples myself.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good thanks!

@zichguan-amd zichguan-amd merged commit 87a6d4c into amd-staging Oct 10, 2025
18 checks passed
@zichguan-amd zichguan-amd deleted the zichguan/fix-hiptensor branch October 10, 2025 14:37
zichguan-amd added a commit to zichguan-amd/rocm-examples that referenced this pull request Oct 10, 2025
zichguan-amd added a commit to zichguan-amd/rocm-examples that referenced this pull request Oct 10, 2025
zichguan-amd added a commit to zichguan-amd/rocm-examples that referenced this pull request Oct 10, 2025
zichguan-amd added a commit to zichguan-amd/rocm-examples that referenced this pull request Oct 10, 2025
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

Successfully merging this pull request may close these issues.

4 participants