Closed
Conversation
The temporary filenames are generated randomly, which reduces the likelihood of conflicts when multiple testing tasks are running concurrently.
Including CTest explicitly suppresses the error that DartConfiguration.tcl is not found. References: - https://stackoverflow.com/questions/49676389/cmake-doesnt-create-the-dartconfiguration-tcl - https://cmake.org/pipermail/cmake/2015-January/059742.html
The `gtest_discover_tests()` command in CMake defaults to using relative paths based on the build directory when running the tests. This can cause issues if developers build multiple versions of the project, for example with different configuration flags, as the tests will fail to locate the test files correctly. To decouple the build process from the test execution, this commit sets the working directory for CTest to the tests/ subdirectory. By doing so, the relative paths used by the discovered tests will correctly resolve to the test files, regardless of the build directory structure or configuration used.
The correct property name should be `DISCOVERY_TIMEOUT`, and it seems that passing the value with the `PROPERTY` keyword doesn't take effects. The default timeout for finding the tests is 5 seconds. This should be long enough.
Fix `DenseUniTensorTest.arange_step_error`.
This reverts commit 1be5056.
Re-fix setOrder
Change the CTest working directory to `tests/`
Suppress specific compilation errors reported by Clang for the following
files:
1. **src/linalg/Tensordot.cpp**:
- Error: non-pod-varargs
- Details: Passing non-POD types to variadic functions is
conditionally supported by the compiler, as outlined in the C++17
standard (section 8.2.2/9). For more information, refer to
[Passing NON-POD type to Variadic function is undefined behavior?](https://stackoverflow.com/a/10083921).
2. **Other Files**:
- Error: c++11-narrowing
An issue reported the code below raises error by clang on Mac.
```
doulbe _Complex right = 123.4 + 45435.1I;
std::complex<doulbe> left{43.4, 2532.1};
left *= (std::complex<doulbe>)right; // invalid implicit conversion
```
This may be a bug in Clang on Mac, as no errors are raised by Clang on
CentOS or in the online compiler.
Suppress clang error
fixed segfault when a BlockUniTensor with no valid blocks was printed…
Fix combindBond in pybind, so the default argument is_grp = true works.
…y will return itself instead of None as a void function.
Encapsulate Storage_base class
1. Use deprecated atribute as suggestion. 2. Add documentation for deprecated functions to indicate which recommended function can be used.
Fix deprecated functions.
1. Fix Lanczos Gnd unit test cause from putblock using different devices. 2. Skip ExpM for gpu test since Eig still not implemted, which is needed to do the exponential. 3. cuda svd cannot give the correct answer if almost elements are zeros. So we skip Svd U1_zeros tests. 4. The answer of Svd_truncate3 is not correct also cause from the above issue. So I delete it.
Improve README
1. Adjust the file to ensure the Markdown displays correctly in the GitHub viewer. 2. Add the developer and contributors. 3. Incorporate content suggested in the PR #541 . 4. Add a link to the release note. 5. Add the paper reference. 6. Remove certain content and leave them in `dox.md` file.
Fix gpu unit test.
1. update linalg function and add proper links. 2. update the contributer and developers.
We exclude some structure, which we don't expect users to use, in the documentation.
1. Fix example code and complete empyt output. 2. Exclude some file to document. 3. Fix worng output of the documentation.
1. Add more description about the UniTensor and give some example code. 2. Test all code and fix. 3. Add linalg part.
readme update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test macos building