Skip to content

Commit 5fd4fbe

Browse files
authored
Update sdp_utils.cpp to have same version check in all places.
1 parent b97cff1 commit 5fd4fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aten/src/ATen/native/transformers/cuda/sdp_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ bool check_flash_attention_hardware_support(sdp_params const& params, bool debug
308308
}
309309
return false;
310310
}
311-
#if AOTRITON_VERSION_MINOR >= 9
311+
#if AOTRITON_VERSION_CURRENT >= AOTRITON_VERSION_INT(0, 9)
312312
if (aotriton::isArchExperimentallySupported(stream)) {
313313
static const bool enable_experimental = c10::utils::check_env("TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL") == true;
314314
if (!enable_experimental) {
@@ -365,7 +365,7 @@ bool check_mem_efficient_hardware_support(sdp_params const& params, bool debug)
365365
}
366366
return false;
367367
}
368-
#if AOTRITON_VERSION_MINOR >= 9
368+
#if AOTRITON_VERSION_CURRENT >= AOTRITON_VERSION_INT(0, 9)
369369
if (aotriton::isArchExperimentallySupported(stream)) {
370370
static const bool enable_experimental = c10::utils::check_env("TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL") == true;
371371
if (!enable_experimental) {

0 commit comments

Comments
 (0)