Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add general block sparse tensor support #135

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9d77571
[WIP] lambda function is_non_zero_check
erdalmutlu Nov 8, 2024
8b4603f
Committing clang-format changes
exachem23 Nov 8, 2024
f9961c1
add simple test case
erdalmutlu Nov 8, 2024
fd99b54
[WIP] adds struct based BlockSparse Tensor
erdalmutlu Nov 11, 2024
31c0c49
Merge branch 'block_sparse' of github.com:NWChemEx/TAMM into block_sp…
erdalmutlu Nov 11, 2024
c586dd7
[WIP] minor
erdalmutlu Nov 11, 2024
d8accf3
[WIP] changes is non zero logic to more general use of reference indi…
erdalmutlu Nov 12, 2024
04c9aff
[WIP] minor format fix
erdalmutlu Nov 12, 2024
8f6ce76
adds support for Block Sparse tensors with tests
erdalmutlu Dec 3, 2024
ea0efa9
adds LocalTensor support with tests and documentation
erdalmutlu Nov 12, 2024
b8e859f
[PG] add support for subgroup creation
ajaypanyala Nov 14, 2024
55e7e4c
[PG] allow parent group specification internally
ajaypanyala Nov 15, 2024
06edda2
adds documentation for BlockSparse Tensor and moves tests for upcxx b…
erdalmutlu Dec 4, 2024
cf280ef
adds copying capabilities from/to distributed tensors
erdalmutlu Dec 11, 2024
20faf96
updates the block sparse tensor implementation
erdalmutlu Dec 19, 2024
6c461ad
profiling update
ajaypanyala Nov 9, 2024
3dca616
fix warnings
ajaypanyala Nov 10, 2024
dd4c35d
fix some clang warnings
ajaypanyala Nov 10, 2024
799b963
[CCSD Test] remove unnecessary memcpy
ajaypanyala Nov 10, 2024
ada987e
minor update to print_vector
ajaypanyala Dec 19, 2024
21ab651
cleans up debugging info
erdalmutlu Dec 20, 2024
c291104
fixes bug with exact copy
erdalmutlu Jan 10, 2025
0916274
adds new constructors for block sparse tensors
erdalmutlu Jan 21, 2025
c499c94
renames the BlockSparseInfo to TensorInfo
erdalmutlu Jan 23, 2025
da20abb
adds error handling for block sparse tensors by adding new checks on …
erdalmutlu Jan 30, 2025
3435391
fix for missing update on exact copy on block sparse tensors tests
erdalmutlu Jan 30, 2025
07f134d
Merge branch 'main' into block_sparse
erdalmutlu Jan 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor update to print_vector
ajaypanyala committed Dec 20, 2024
commit ada987eec96dcf0a42ac37b1f8f75d3814e130e2
3 changes: 2 additions & 1 deletion src/tamm/tamm_utils.hpp
Original file line number Diff line number Diff line change
@@ -183,7 +183,8 @@ std::string tensor_to_string(const Tensor<T>& tensor) {
template<typename T>
void print_vector(std::vector<T> vec, std::string filename = "") {
std::stringstream tstring;
for(size_t i = 0; i < vec.size(); i++) tstring << i + 1 << "\t" << vec[i] << std::endl;
for(size_t i = 0; i < vec.size(); i++)
tstring << i + 1 << "\t" << std::fixed << std::setprecision(12) << vec[i] << std::endl;

if(!filename.empty()) {
std::ofstream tos(filename, std::ios::out);