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

Enable hipRTC compilation of codegen tests #1520

Closed

Conversation

music-dino
Copy link
Collaborator

@music-dino music-dino commented Sep 18, 2024

  • Enable hipRTC compilation for codegen tests
  • Exclude code paths that trip up hipRTC with #ifdef HIPCC_RTC
  • Implement missing type_traits constructs for the hipRTC code path

codegen/test/common.hpp Outdated Show resolved Hide resolved
codegen/test/common.hpp Outdated Show resolved Hide resolved
codegen/CMakeLists.txt Outdated Show resolved Hide resolved
@music-dino music-dino changed the title Enable CK to be used with MIGraphX Enable hipRTC compilation of codegen tests Oct 2, 2024
@music-dino music-dino marked this pull request as ready for review October 2, 2024 14:12
codegen/test/CMakeLists.txt Outdated Show resolved Hide resolved
codegen/test/CMakeLists.txt Outdated Show resolved Hide resolved
codegen/test/common.hpp Outdated Show resolved Hide resolved
return {p.first, p.second};
});
std::transform(ck_headers.begin(), ck_headers.end(), std::back_inserter(result), [](auto& p) {
return rtc::src_file{p.first, content_wrapper(p.second)};
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove content_wrapper, just do rtc::src_file{p.first, p.second}.

Copy link
Collaborator

Choose a reason for hiding this comment

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

When I remove the wrapper, hiprtcCreateProgram fails with HIPRTC_ERROR_INVALID_INPUT. I have to take a closer look to see what's going on.

Copy link
Collaborator

Choose a reason for hiding this comment

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

For some reason, hipRTC fails if there's no whitespace before the contents. I implemented a workaround for now.

include/ck/utility/type.hpp Outdated Show resolved Hide resolved
@illsilin
Copy link
Collaborator

Hi Mirza, could you please use the ROCm/codegen-enable-hiprtc branch for any further commits? This will enable us to run the CI tests autometically.
Thanks!

@mirza-halilcevic
Copy link
Collaborator

Hi Mirza, could you please use the ROCm/codegen-enable-hiprtc branch for any further commits? This will enable us to run the CI tests autometically. Thanks!

Unfortunately, I don't have the required permissions to push to that branch.

- Move descriptor for gemm_softmax_gemm to different branch
@mirza-halilcevic
Copy link
Collaborator

Moved to #1574

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