Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAVE_PEER_ACCESS is always present in all relevant versions of CUDA or #572

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

abouteiller
Copy link
Contributor

Issue: ROCM would not use peer-access operators because we don't have a cmake test for the rocm-specific version of the have_peer_access function.

However, HAVE_PEER_ACCESS is always present in all relevant versions of CUDA or ROCM, so no need to cmake detect it, just require minimum cuda and rocm versions.

ROCM, so no need to cmake detect it.

Signed-off-by: Aurelien Bouteiller <[email protected]>
@abouteiller abouteiller self-assigned this Sep 6, 2023
@abouteiller abouteiller requested a review from a team as a code owner September 6, 2023 17:53
@@ -725,7 +717,7 @@ int main(int argc, char *argv[]) {
# This is kinda ugly but the PATH and HINTS don't get transmitted to sub-dependents
set(CMAKE_SYSTEM_PREFIX_PATH_save ${CMAKE_SYSTEM_PREFIX_PATH})
list(APPEND CMAKE_SYSTEM_PREFIX_PATH /opt/rocm)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this explicit path should be here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing it would break the detection of the system install rocm (as installed from the RPMs distributed by AMD).

Copy link
Contributor

Choose a reason for hiding this comment

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

Why cant you use PATHS or HINTS ? According to the cmake documentation that's the preferred way.

Copy link
Contributor Author

@abouteiller abouteiller Sep 7, 2023

Choose a reason for hiding this comment

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

Cmake 'feature/bug': unlike ROCM_ROOT, they do not get propagated to the internal find_packages that are done within FindRocm and that results in an inconsistent/incomplete detection of internal features, see comment just above line 717.

Copy link
Contributor

@devreal devreal left a comment

Choose a reason for hiding this comment

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

LGTM

@bosilca bosilca merged commit c174b39 into ICLDisco:master Sep 7, 2023
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