We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbc369c commit e2d6008Copy full SHA for e2d6008
csrc/cpu/cpu_attn_impl.hpp
@@ -754,7 +754,7 @@ class AttentionScheduler {
754
return l2_cache_size >> 1; // use 50% of L2 cache
755
}
756
// Fallback if sysctlbyname fails
757
- return 128 * 1024 >> 1; // use 50% of 128KB
+ return 128LL * 1024 >> 1; // use 50% of 128KB
758
#else
759
long l2_cache_size = sysconf(_SC_LEVEL2_CACHE_SIZE);
760
TORCH_CHECK_NE(l2_cache_size, -1);
0 commit comments