From b5281f5fc01fc925898c9323edab41b817df8661 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 14 Feb 2024 15:36:25 -0500 Subject: Add test that higher-granularity masks override lower-granularity ones Stream-level masks should always override globally-set masks. Next-kernel masks should always override both stream-level masks and globally-set masks. Tests reveal an issue with the next-kernel mask not overriding the stream mask on CUDA 11.0+. CUDA appears to apply the per-stream mask to the QMD/TMD after `launchCallback()` is triggered, making it impossible to override as currently implemented. --- libsmctrl_test_stream_mask_override.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libsmctrl_test_stream_mask_override.c (limited to 'libsmctrl_test_stream_mask_override.c') diff --git a/libsmctrl_test_stream_mask_override.c b/libsmctrl_test_stream_mask_override.c new file mode 100644 index 0000000..5098d17 --- /dev/null +++ b/libsmctrl_test_stream_mask_override.c @@ -0,0 +1,10 @@ +// Copyright 2024 Joshua Bakita +// Test that libsmctrl_set_stream_mask_ext() overrides the global mask. +// All types of partitioning use the same test, so this file is trival. + +#include "libsmctrl_test_mask_shared.h" + +int main() { + return test_constrained_size_and_location(PARTITION_STREAM_OVERRIDE); +} + -- cgit v1.2.2