Skip to content

Add gpu tag for ROCm-LLVM and refactor method#228

Open
zerefwayne wants to merge 1 commit into
EESSI:mainfrom
zerefwayne:gpu-tag-rocm
Open

Add gpu tag for ROCm-LLVM and refactor method#228
zerefwayne wants to merge 1 commit into
EESSI:mainfrom
zerefwayne:gpu-tag-rocm

Conversation

@zerefwayne
Copy link
Copy Markdown
Contributor

@zerefwayne zerefwayne commented May 12, 2026

Easyconfigs which include ROCm-LLVM as a dependency should also be tagged with gpu. It doesn't need to be dropped to a build dependency as it is redistributable (unlike CUDA).

The loop seems to iterate over dependencies twice, it can be simplified to one pass.

Comment thread eb_hooks.py
add_gpu_property = ''

# If none of the gpu packages are in the easyconfig, do not process further
dep_names = {dep[0] for dep in ec_dict['dependencies']}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Have you tested this? I wonder if ROCm-LLVM is the toolchain if it actually appears in the dependencies?

Copy link
Copy Markdown
Contributor

@casparvl casparvl May 12, 2026

Choose a reason for hiding this comment

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

I doubt it. For one of the other hooks (can't remember which) where we searched some dep list with CUDA / cuDNN in it, I added logic to also check the toolchain instead - and then just trigger it if it's rocm-compilers, rompi,... etc. This should probably do something similar. @zerefwayne search for rocm-compilers in eb_hooks.py and you'll probably find my logic in the other hook.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would be better if we can identify ROCm-LLVM explicitly so that we can store the version in an environment variable. That will be useful later in Lmod when we are checking if the version is supported by the driver.

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.

3 participants