Skip to content

Conversation

bratpiorka
Copy link
Contributor

@bratpiorka bratpiorka commented Sep 18, 2024

enable GPU IPC tests on Windows

@bratpiorka bratpiorka force-pushed the rrudnick_ipc_win branch 5 times, most recently from 6da36e1 to da553d7 Compare September 19, 2024 08:08
@bratpiorka bratpiorka force-pushed the rrudnick_ipc_win branch 3 times, most recently from a77f891 to 78361c2 Compare September 16, 2025 14:49
@bratpiorka bratpiorka changed the title enable IPC tests and examples on Windows enable GPU IPC tests and examples on Windows Sep 16, 2025
@bratpiorka bratpiorka force-pushed the rrudnick_ipc_win branch 6 times, most recently from 976028a to cfc6f31 Compare September 17, 2025 08:27
@bratpiorka bratpiorka changed the title enable GPU IPC tests and examples on Windows enable GPU IPC tests on Windows Sep 17, 2025
@bratpiorka bratpiorka marked this pull request as ready for review September 17, 2025 12:03
@bratpiorka bratpiorka requested a review from a team as a code owner September 17, 2025 12:03

set UMF_LOG="level:debug;flush:debug;output:stderr;pid:yes"

echo "Starting test_ipc_cuda_prov CONSUMER on port %PORT% ..."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make it a single script with a binary name parameterized?


err_WSA_cleanup:
#ifdef _WIN32
WSACleanup();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be cleaned up on a successful return also, like in the consumer_connect()?

Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job in general, a few minor issues

if(WINDOWS)
message(
STATUS "DEBUG CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}")
message(STATUS "DEBUG CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these debug messages supposed to be committed...?

message(STATUS "IPC tests are supported on Linux only - skipping")
message(
STATUS
"IPC file, devdax and proxy lib tests are supported on Linux only - skipping"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for clarity I'd say: IPC tests for OS, file, devdax providers and proxy lib are supported only on Linux - skipping (including missing "OS provider") - pls remove "OS" if it's working on Windows.

LIBS cuda ${UMF_IPC_LIBS} ${UMF_UTILS_FOR_TEST})
add_umf_ipc_test(TEST ipc_cuda_prov SRC_DIR providers)
endif()

if(LINUX)
if(UMF_POOL_SCALABLE_ENABLED)
build_umf_test(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os_prov should be working on Windows, right? if this is not working yet, pls add a TODO, otherwise move it out of if(LINUX) as well, pls

@@ -512,7 +581,11 @@ int run_producer(int port, const umf_memory_pool_ops_t *pool_ops,
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you have perhaps a logs from a verbose run on these tests on Windows...?

@bratpiorka bratpiorka force-pushed the rrudnick_ipc_win branch 7 times, most recently from d0aca41 to becaa7d Compare September 17, 2025 18:36
@bratpiorka bratpiorka force-pushed the rrudnick_ipc_win branch 12 times, most recently from 1d41c75 to 152c072 Compare September 18, 2025 08:15
@bratpiorka bratpiorka marked this pull request as draft September 19, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants