From f733327ba4cda869562eacb3e7bb43b9c4b9a132 Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Wed, 29 Jun 2022 17:05:13 -0700 Subject: [PATCH] [BACKEND][CODEGEN] Disabling L2 residency control by default (#570) --- lib/codegen/selection/generator.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/codegen/selection/generator.cc b/lib/codegen/selection/generator.cc index e69b0acee..48a15c4af 100644 --- a/lib/codegen/selection/generator.cc +++ b/lib/codegen/selection/generator.cc @@ -802,6 +802,7 @@ void generator::visit_load_inst(ir::load_inst* x){ int width = std::min(tot_width, max_word_width); int n_words = std::max(1, tot_width / width); bool has_l2_evict_policy = (x->get_eviction_policy() != ir::load_inst::NORMAL) && tgt_->as_nvidia()->sm() >= 80; + has_l2_evict_policy = false; // has_evict_policy = false; // currently disable until supported in `store` // ----- // create inline asm string @@ -966,6 +967,7 @@ void generator::visit_store_inst(ir::store_inst * x){ vec = std::min(2, aln); } bool has_l2_evict_policy = (x->get_eviction_policy() != ir::load_inst::NORMAL) && tgt_->as_nvidia()->sm() >= 80; + has_l2_evict_policy = false; auto idxs = idxs_.at(val_op); Type *ty = cvt(val_op->get_type()->get_scalar_ty()); if (ty->isBFloatTy()) // llvm11-nvptx cannot select bf16 store