Skip to content

Commit 7ea37f5

Browse files
committed
enable NVFuser by default
Enable NVFuser in OSS. Tests are passing, and we've also run tests in [torchvision](pytorch/vision#5959) and [torchaudio](pytorch/audio#2372) Retry of #76006, because that PR had GH1/ghstack issues. [ghstack-poisoned]
1 parent fc4f8b5 commit 7ea37f5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

torch/csrc/jit/codegen/cuda/interface.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,12 @@ class NVFuserEnabler {
9090
if (getCachedFuserEnabledEnvVar().has_value()) {
9191
return *getCachedFuserEnabledEnvVar();
9292
}
93-
// 3. default value (if you switch this to true, make sure
94-
// to check nvfuserCanBeEnabled())
93+
// 3. default value
94+
#ifdef FBCODE_CAFFE2
9595
return false;
96+
#else
97+
return nvfuserCanBeEnabled();
98+
#endif
9699
}
97100

98101
public:

0 commit comments

Comments
 (0)