aboutsummaryrefslogtreecommitdiffstats
path: root/libsmctrl_test_mask_shared.cu
diff options
context:
space:
mode:
Diffstat (limited to 'libsmctrl_test_mask_shared.cu')
-rw-r--r--libsmctrl_test_mask_shared.cu7
1 files changed, 6 insertions, 1 deletions
diff --git a/libsmctrl_test_mask_shared.cu b/libsmctrl_test_mask_shared.cu
index e4ddde7..3b7ebcd 100644
--- a/libsmctrl_test_mask_shared.cu
+++ b/libsmctrl_test_mask_shared.cu
@@ -1,9 +1,10 @@
1// Copyright 2023 Joshua Bakita 1// Copyright 2023-2025 Joshua Bakita
2#include <error.h> 2#include <error.h>
3#include <errno.h> 3#include <errno.h>
4#include <stdio.h> 4#include <stdio.h>
5#include <stdbool.h> 5#include <stdbool.h>
6#include <cuda_runtime.h> 6#include <cuda_runtime.h>
7#include <unistd.h> // For getpid()
7 8
8#include "libsmctrl.h" 9#include "libsmctrl.h"
9#include "testbench.h" 10#include "testbench.h"
@@ -81,6 +82,10 @@ int test_constrained_size_and_location(enum partitioning_type part_type) {
81 82
82 // Apply partitioning to enable only the first TPC of each 32-bit block 83 // Apply partitioning to enable only the first TPC of each 32-bit block
83 switch (part_type) { 84 switch (part_type) {
85 case PARTITION_SUPREME:
86 printf("%s: Please set mask to '0x%016lx%016lx' for PID %d using the control deamon and press any key to continue...\n", program_invocation_name, (uint64_t)(mask >> 64), (uint64_t)mask, getpid());
87 fgetc(stdin);
88 break;
84 case PARTITION_GLOBAL: 89 case PARTITION_GLOBAL:
85 libsmctrl_set_global_mask(mask); 90 libsmctrl_set_global_mask(mask);
86 break; 91 break;