Repository navigation
Conversation
| // calculate the sizes needed for pre-allocated buffer. | ||
| CHECK_CUSOLVER(cusolverDnDsygvd_bufferSize(cusolver_H, CUSOLVER_EIG_TYPE_1, CUSOLVER_EIG_MODE_VECTOR, uplo, n, | ||
| A, lda, B, ldb, W, &lwork)); | ||
| CHECK_CUSOLVER(cusolverDnDsygvd_bufferSize(cusolver_H, |
| const int j = band * ld + i; | ||
| out[j] = direction ? x[j] + a[band] * (out[j] - b[band] * y[j]) : (out[j] + a[band] * x[j]) + b[band] * y[j]; | ||
| out[j] | ||
| = direction ? x[j] + a[band] * (out[j] - b[band] * y[j]) : (out[j] + a[band] * x[j]) + b[band] * y[j]; |
There was a problem hiding this comment.
Honestly I don't like this either, but clang-format choose what it thinks proper :(
| psi_iter + (nbase + m) * dim, | ||
| psi_m_norm); | ||
| if (psi_norm) { | ||
| ModuleBase::vector_div_constant_op<T, base_device::DEVICE_CPU>()(dim, |
| return std::make_pair(info, std::vector<int>{}); | ||
| } else if (info < 0) { | ||
| } | ||
| else if (info < 0) |
There was a problem hiding this comment.
Changing style to LLVM will avoid such addition, but that was not accepted and then dropped in my first precommit PR.
| else | ||
| { | ||
| work_.dot_pair(ld_, dim_, active_, residual, residual, work_.data(shadow_slot), residual, norm_.data(), rho_.data()); | ||
| work_.dot_pair(ld_, |
| const Wide one(1); | ||
| const Wide zero(0); | ||
| ModuleBase::gemm_op<Wide, base_device::DEVICE_CPU>()('N', 'N', n, n, n, &one, a.data(), n, b.data(), n, &zero, result->data(), n); | ||
| ModuleBase::gemm_op<Wide, base_device::DEVICE_CPU>()('N', |
ABACUS-PR-BOT
left a comment
There was a problem hiding this comment.
Non-blocking: Please replace the template placeholders with a brief formatting/include-order summary and the exact verification commands and results. If builds or runtime tests were not run, state that and why, and note why INPUT documentation is unchanged. This reformat does not by itself require new functional tests.
b19cb89 to
79b99a5
Compare
79b99a5 to
0852c8c
Compare
ABACUS-PR-BOT
left a comment
There was a problem hiding this comment.
Static review of 0852c8cc against 64463eb3 found no confirmed source correctness defect. No candidate formatter, build or runtime tests were run.
| BinPackArguments: false | ||
| BinPackParameters: false | ||
|
|
||
| BreakBeforeBinaryOperators: All | ||
| BreakBeforeTernaryOperators: true | ||
|
|
||
| Cpp11BracedListStyle: true | ||
| FixNamespaceComments: true | ||
|
|
||
| # InsertBraces: true # only for clang-format version15.0.0 or later | ||
|
|
||
| # About include | ||
| IncludeBlocks: Regroup | ||
| IncludeIsMainRegex: '([-_](test|unittest))?$' | ||
| IncludeIsMainSourceRegex: '' | ||
|
|
||
| PackArguments: | ||
| BinPack: UseBreakAfter | ||
| BreakAfter: 3 | ||
| PackParameters: | ||
| BinPack: UseBreakAfter | ||
| BreakAfter: 3 |
There was a problem hiding this comment.
Non-blocking: In the pinned clang-format 23.1.3, PackArguments and PackParameters override the two legacy BinPack* settings above. Please remove those ineffective aliases so the active three-item packing threshold is clear.
Reminder
AGENTS.mdanddocs/developers_guide/agent_governance.md.source/changes.Linked Issue
Fix #
Unit Tests and/or Case Tests for my changes
What's changed?
Governance Notes