-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add cluster
to LaunchConfig
to support thread block clusters on Hopper
#261
base: main
Are you sure you want to change the base?
Conversation
/ok to test |
@vzhurba01 this is ready for review |
if not _use_ex: | ||
raise CUDAError("thread block clusters require cuda.bindings & driver 11.8+") | ||
if Device().compute_capability < (9, 0): | ||
raise CUDAError("thread block clusters are not supported below Hopper") |
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 personally think this message should refer to compute capability rather than archictecture name chronology. ie "thread block clusters require compute capability >=9.0" That is subjective though, I think if we leave it as hopper we should add "(compute capability >= 9.0)"
dev = Device() | ||
arch = dev.compute_capability | ||
if arch < (9, 0): | ||
print("this demo requires a Hopper GPU (since thread block cluster is a hardware feature)", file=sys.stderr) |
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.
on the cuda programming guide it indicates that thread block clusters were introduced in cc 9.0 . This seems to indicate that they are exclusive to Hopper. If they are not exclusive to hopper I think we should refer to Compute Capability, or atleast include it and say "Hopper or newer". Personal preference would be >= 9.0
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.
One nit / comment about the documentation, but otherwise lgtm
Close #204.