File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ void Context::setBenchmarkLimitCuDNN(int b) {
254
254
255
255
bool Context::allowTF32CuBLAS () const {
256
256
#ifdef USE_ROCM
257
- const auto allow_tf32 = c10::utils::check_env (hipblaslt_allow_tf32);
257
+ const static auto allow_tf32 = c10::utils::check_env (hipblaslt_allow_tf32);
258
258
if (allow_tf32 != true ) {
259
259
return false ;
260
260
}
@@ -264,7 +264,7 @@ bool Context::allowTF32CuBLAS() const {
264
264
265
265
void Context::setAllowTF32CuBLAS (bool b) {
266
266
#ifdef USE_ROCM
267
- const auto allow_tf32 = c10::utils::check_env (hipblaslt_allow_tf32);
267
+ const static auto allow_tf32 = c10::utils::check_env (hipblaslt_allow_tf32);
268
268
if (allow_tf32 != true ) {
269
269
C10_LOG_FIRST_N (INFO, 10 ) << " torch.backends.cuda.matmul.allow_tf32 is not supported on ROCm by default. "
270
270
<< " Please set environment variable HIPBLASLT_ALLOW_TF32=1 to enable it." ;
You can’t perform that action at this time.
0 commit comments