Skip to content

exception handling for cpx mode#181

Merged
liu15 merged 1 commit intomainfrom
feature/probinso/std_sort
Apr 6, 2026
Merged

exception handling for cpx mode#181
liu15 merged 1 commit intomainfrom
feature/probinso/std_sort

Conversation

@robinson96
Copy link
Copy Markdown
Collaborator

This can happen on CTS 2 machines using flux.

@robinson96 robinson96 requested a review from dawson6 April 6, 2026 19:45
# function returns TRUE if we are within a CPX allocation
# ##############################################################################################################################
def within_cpx_allocation(self):
command = ["/opt/rocm-6.4.1/bin/rocm-smi", "--showcomputepartition"]
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.

Should this also be updated? Or avoid being hardcoded?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe in a future change it can be plumbed in but it is ambiguous whether this should best be done using an environment variable or an ATS option, but this just needs to be present on the system for this to work. Note that the usage for our code doesn't rely on this (we pass --cpx directly).

@liu15 liu15 requested review from liu15 and removed request for dawson6 April 6, 2026 19:57
@liu15 liu15 merged commit a0f9cef into main Apr 6, 2026
24 checks passed
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