Skip to content

Commit 454b4a5

Browse files
committed
Final touch (towards v1.3.2)
Get rid of warning in DTensor<T>::createRandomTensor ci/script: use pushd/popd instead of cd update CHANGELOG
1 parent e829fae commit 454b4a5

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,21 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
<!-- ---------------------
9+
v1.3.2
10+
--------------------- -->
11+
## v1.3.2 - 8-11-2024
12+
13+
### Fixed
14+
15+
- When slicing a `DTensor` along `axis=2`, update the pointer to matrices
16+
- We got rid of warning `DTensor<T>::createRandomTensor`
17+
818

919
<!-- ---------------------
1020
v1.3.1
1121
--------------------- -->
12-
## v1.3.1 - 8-11-2024
22+
## v1.3.1 - 7-11-2024
1323

1424
### Fixed
1525

ci/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ tests() {
3333
if [ -z "${hwInfoOrin}" ]; then
3434

3535
# -- run compute sanitizer
36-
cd ./build/test
36+
pushd ./build/test
3737
mem=$(/usr/local/cuda/bin/compute-sanitizer --tool memcheck --leak-check=full ./device_test)
3838
grep "0 errors" <<< "$mem"
39-
cd ../..
39+
popd
4040

4141
# ------------------------------------
4242
# Run example executable

include/tensor.cuh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,8 @@ DTensor<T> DTensor<T>::createRandomTensor(size_t numRows, size_t numCols, size_t
560560
auto randVec = generateIntRandomVector(numRows * numCols * numMats, low, hi);
561561
DTensor<T> a(randVec, numRows, numCols, numMats);
562562
return a;
563-
} else {
564-
throw std::invalid_argument("[createRandomTensor] unsupported type T");
565563
}
564+
throw std::invalid_argument("[createRandomTensor] unsupported type T");
566565
}
567566

568567
template<typename T>

0 commit comments

Comments
 (0)