From 57b6163d29ffcf9c1aa8016e707d234bfc278015 Mon Sep 17 00:00:00 2001 From: Dominic Widdows Date: Sat, 6 Sep 2025 00:11:16 +0000 Subject: [PATCH 1/2] Update googletest submodule to commit 52eb810 --- third_party/googletest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/googletest b/third_party/googletest index aee0f9d9..52eb8108 160000 --- a/third_party/googletest +++ b/third_party/googletest @@ -1 +1 @@ -Subproject commit aee0f9d9b5b87796ee8a0ab26b7587ec30e8858e +Subproject commit 52eb8108c5bdec04579160ae17225d66034bd723 From c82cccf45fc84e8d129a8246d5101558ac3ea37c Mon Sep 17 00:00:00 2001 From: Dominic Widdows Date: Mon, 8 Sep 2025 13:49:34 -0700 Subject: [PATCH 2/2] Update README with test building and running instructions Added instructions for building and running tests using CMake and Ninja. --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f98aeca2..669bc6cf 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ $ git clone --recursive https://github.com/pytorch/tensorpipe Then, build as follows (using ninja instead of make): -``` shell +```shell $ cd tensorpipe $ mkdir build $ cd build @@ -22,8 +22,24 @@ $ cmake ../ -GNinja $ ninja ``` +### Running Tests + +Tests can be built using this variant of the above cmake / ninja build: + +```shell +$ cmake ../ -GNinja -DTP_BUILD_TESTING=ON +$ ninja tensorpipe_test +``` + You can find test executables in `build/tensorpipe/test`. +Tests can be run using (e.g.) +```shell +$ ./tensorpipe_test --gtest_filter='-*Ibv*' +``` + +The filter `--gtest_filter='-*Ibv*'` prevents the tests from stalling if your system doesn't have Infiniband. + ## Interface There are four classes you need to know about: