mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
[cuDNN][SDPA] Use-same prefer-cuDNN settings for Blackwell and Blackwell Ultra (#170800)
GB300 can run GB200 SDPA kernels Pull Request resolved: https://github.com/pytorch/pytorch/pull/170800 Approved by: https://github.com/Skylion007
This commit is contained in:
committed by
PyTorch MergeBot
parent
766be25a17
commit
178ebac3a9
@@ -84,7 +84,8 @@ bool check_prefer_cudnn_attention() {
|
||||
try {
|
||||
auto dprops = at::cuda::getCurrentDeviceProperties();
|
||||
auto major = dprops->major;
|
||||
return (major == 9 || major == 10) && !dprops->minor;
|
||||
auto minor = dprops->minor;
|
||||
return (major == 9 || major == 10) && (!minor || minor == 3);
|
||||
} catch ([[maybe_unused]] c10::Error const& e) {
|
||||
#ifdef DEBUG
|
||||
TORCH_WARN("check_prefer_cudnn_attention() caught exception ", e.what());
|
||||
|
||||
Reference in New Issue
Block a user