Skip to content

Commit

Permalink
flexflow#1435 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
oOTigger committed Oct 16, 2024
1 parent 3fc8718 commit d1c9e90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/kernels/test/src/test_managed_ff_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ using namespace ::FlexFlow;

TEST_SUITE(FF_TEST_SUITE) {
TEST_CASE("Test Managed FF Stream") {
ManagedFFStream base_stream{};
ManagedFFStream base_stream{};

SUBCASE("Test ManagedFFStream Move Constructor") {
ffStream_t const *base_stream_ptr = &base_stream.raw_stream();

ManagedFFStream new_stream(std::move(base_stream));

CHECK(&base_stream.raw_stream() == nullptr);
Expand All @@ -21,7 +21,7 @@ TEST_SUITE(FF_TEST_SUITE) {

ManagedFFStream new_stream{};
new_stream = std::move(base_stream);

CHECK(&base_stream.raw_stream() == nullptr);
CHECK(&new_stream.raw_stream() == base_stream_ptr);
}
Expand Down
6 changes: 3 additions & 3 deletions lib/kernels/test/src/test_managed_per_device_ff_handle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using namespace ::FlexFlow;

TEST_SUITE(FF_TEST_SUITE) {
TEST_CASE("Test Managed Per Device FF Handle") {
ManagedPerDeviceFFHandle base_handle{};
ManagedPerDeviceFFHandle base_handle{};

SUBCASE("Test ManagedPerDeviceFFHandle Constructor") {
CHECK(base_handle.raw_handle().workSpaceSize == 1024 * 1024);
Expand All @@ -14,7 +14,7 @@ TEST_SUITE(FF_TEST_SUITE) {

SUBCASE("Test ManagedPerDeviceFFHandle Move Constructor") {
PerDeviceFFHandle const *base_handle_ptr = &base_handle.raw_handle();

ManagedPerDeviceFFHandle new_handle(std::move(base_handle));

CHECK(&base_handle.raw_handle() == nullptr);
Expand All @@ -26,7 +26,7 @@ TEST_SUITE(FF_TEST_SUITE) {

ManagedPerDeviceFFHandle new_handle{};
new_handle = std::move(base_handle);

CHECK(&base_handle.raw_handle() == nullptr);
CHECK(&new_handle.raw_handle() == base_handle_ptr);
}
Expand Down

0 comments on commit d1c9e90

Please sign in to comment.