Skip to content

[CUDA][HIP] Fix return type of various device attributes. #1568

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

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

mmoadeli
Copy link
Contributor

@mmoadeli mmoadeli commented May 1, 2024

Modified return types of the following device attributes for CUDA and HIP backends to ensure compliance with specification

  • UR_DEVICE_INFO_IMAGE_MAX_ARRAY_SIZE
  • UR_DEVICE_INFO_MAX_PARAMETER_SIZE
  • UR_DEVICE_INFO_PROFILING_TIMER_RESOLUTION
  • UR_DEVICE_INFO_PRINTF_BUFFER_SIZE

There were failures on testing test-e2e/Basic/info.cpp on Windows due to use of invalid types.

@mmoadeli mmoadeli requested review from a team as code owners May 1, 2024 17:59
@mmoadeli mmoadeli requested a review from ldrumm May 1, 2024 17:59
@github-actions github-actions bot added cuda CUDA adapter specific issues hip HIP adapter specific issues labels May 1, 2024
@mmoadeli mmoadeli added hip HIP adapter specific issues and removed hip HIP adapter specific issues labels May 1, 2024
@mmoadeli mmoadeli force-pushed the fix-ur-return-type branch from e6308df to 2c8d688 Compare May 1, 2024 17:59
Copy link
Contributor

@ldrumm ldrumm left a comment

Choose a reason for hiding this comment

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

Sorry this took me so long to review. This looks like good cleanup.

@mmoadeli
Copy link
Contributor Author

@kbenzie a friendly request to have this PR merged, if it looks fine to you.

@kbenzie kbenzie added the ready to merge Added to PR's which are ready to merge label May 29, 2024
@kbenzie
Copy link
Contributor

kbenzie commented May 29, 2024

@kbenzie a friendly request to have this PR merged, if it looks fine to you.

It has been added to the merge queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA adapter specific issues hip HIP adapter specific issues ready to merge Added to PR's which are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants