Skip to content

Commit

Permalink
Merge branch 'fix-segfault' into haoti/convert_from-fixtest
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffry1829 committed Dec 1, 2023
2 parents a578909 + 971be83 commit 0770726
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/BlockUniTensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,8 @@ namespace cytnx {

#ifdef UNI_MKL
// Initialize!!
if ((this->dtype() != Type.Double and this->dtype() != Type.ComplexDouble) and
if (true or
(this->dtype() != Type.Double and this->dtype() != Type.ComplexDouble) and
(this->dtype() != Type.Float and this->dtype() != Type.ComplexFloat) or
this->is_diag() or Rtn->is_diag()) {
tmp->Init(out_bonds, out_labels, out_rowrank, this->dtype(), this->device(), false,
Expand Down Expand Up @@ -1079,7 +1080,7 @@ namespace cytnx {
betas[binx] = 0.0;
}
// prepare to call gemm_batch
if ((tmp->dtype() <= 4 and this->dtype() <= 4 and tmp_Rtn->dtype() <= 4) and
if (false and (tmp->dtype() <= 4 and this->dtype() <= 4 and tmp_Rtn->dtype() <= 4) and
(tmp->dtype() != Type.Void and this->dtype() != Type.Void and
tmp_Rtn->dtype() != Type.Void)) {
ms[binx] = this->_blocks[a].shape()[0];
Expand All @@ -1096,7 +1097,7 @@ namespace cytnx {
// mkl_set_interface_layer(MKL_INTERFACE_ILP64);

blas_int group_count = itoiR_idx.size();
if ((tmp->dtype() <= 4 and this->dtype() <= 4 and tmp_Rtn->dtype() <= 4) and
if (false and (tmp->dtype() <= 4 and this->dtype() <= 4 and tmp_Rtn->dtype() <= 4) and
(tmp->dtype() != Type.Void and this->dtype() != Type.Void and
tmp_Rtn->dtype() != Type.Void)) {
group_size.resize(group_count, 1);
Expand Down

0 comments on commit 0770726

Please sign in to comment.