-
Notifications
You must be signed in to change notification settings - Fork 325
Formatters for cuda::arch_id and cuda::compute_capability
#7335
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
base: main
Are you sure you want to change the base?
Conversation
| assert(std::format(TEST_STRLIT(C, "{}"), cuda::arch_id::sm_103a) == TEST_STRLIT(C, "103a")); | ||
| assert(std::format(TEST_STRLIT(C, "{}"), cuda::arch_id::sm_110a) == TEST_STRLIT(C, "110a")); | ||
| assert(std::format(TEST_STRLIT(C, "{}"), cuda::arch_id::sm_120a) == TEST_STRLIT(C, "120a")); | ||
| assert(std::format(TEST_STRLIT(C, "{}"), cuda::arch_id::sm_121a) == TEST_STRLIT(C, "121a")); |
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.
@bernhardmgruber is formatting cuda::arch_id as "NM[a]" what you want? We could make it "sm_NM[a]", too.
Or alternatively, we can make it part of the formatting options as std::format("{:p}", arch_id) no add the sm_ prefix.
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.
Another option would be:
bfor binary architecture, the output would look assm_NM[a]vfor virtual architecture, the output would look ascompute_NM[a]
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.
Maybe it would be better to keep it as is, you can always prepend the right prefix that works for your compiler.
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.
I would love if it was just spelled like the enum, so sm_103a for example :)
😬 CI Workflow Results🟥 Finished in 1h 59m: Pass: 97%/84 | Total: 1d 12h | Max: 1h 59m | Hits: 95%/199098See results here. |
This PR specializes
std::formatterforcuda::arch_idandcuda::compute_capability