Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shmsong committed Sep 21, 2022
1 parent 4be509b commit e9c0519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torch/csrc/jit/codegen/cuda/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ std::string FusionExecutor::getStructuredCode(const std::string& kernel) {
#endif
#endif
code += std::string("namespace ") + FusionExecutor::kernelNamespace() +
" {\n" + defineNvFuserZero(fusion_->isNvFuserZeroEnabled()) +
" {\n" +
defineNvFuserZero(fusion_ == nullptr || fusion_->isNvFuserZeroEnabled()) +
defineIntegerTypes() + defineIndexMode(options_.index_mode) +
defineComplexTypes() + executor_utils::kernelPreamble() + kernel + "}\n";

Expand Down

0 comments on commit e9c0519

Please sign in to comment.