diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2024-02-14 15:36:25 -0500 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2024-02-14 15:36:25 -0500 |
| commit | b5281f5fc01fc925898c9323edab41b817df8661 (patch) | |
| tree | 6a14c270c7a3bb061bd167d87430d3dd9f3696ec /libsmctrl_test_stream_mask_override.c | |
| parent | 973b919cfe6d05fdb3b82f538b1afbc3233a7008 (diff) | |
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.
Diffstat (limited to 'libsmctrl_test_stream_mask_override.c')
| -rw-r--r-- | libsmctrl_test_stream_mask_override.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
| 1 | // Copyright 2024 Joshua Bakita | ||
| 2 | // Test that libsmctrl_set_stream_mask_ext() overrides the global mask. | ||
| 3 | // All types of partitioning use the same test, so this file is trival. | ||
| 4 | |||
| 5 | #include "libsmctrl_test_mask_shared.h" | ||
| 6 | |||
| 7 | int main() { | ||
| 8 | return test_constrained_size_and_location(PARTITION_STREAM_OVERRIDE); | ||
| 9 | } | ||
| 10 | |||
