-
Notifications
You must be signed in to change notification settings - Fork 141
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
Enable hipRTC compilation of codegen tests #1520
Conversation
music-dino
commented
Sep 18, 2024
•
edited by mirza-halilcevic
Loading
edited by mirza-halilcevic
- 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
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)}; |
There was a problem hiding this comment.
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}
.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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. |
Unfortunately, I don't have the required permissions to push to that branch. |
- Move descriptor for gemm_softmax_gemm to different branch
Moved to #1574 |