aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2024-12-19 14:59:15 -0500
committerJoshua Bakita <jbakita@cs.unc.edu>2024-12-19 15:04:26 -0500
commit32f89528085f3cdb183e50461ffcd109d1f9a58d (patch)
tree2583fc3e6b588c5aae06ae43376f5c444d891a29
parentd052c2df34ab41ba285f70965663e5a0832f6ac9 (diff)
Remove unused variables from Makefile
Make automatically provides CXX and CC, and these manual definitions were being ignored. Also fix a missing space in one of the messages from the tests.
-rw-r--r--Makefile3
-rw-r--r--libsmctrl_test_mask_shared.cu2
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0d9b9f6..5af440e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,4 @@
1CC = gcc 1# Note that CXX and CC are predefined as g++ and cc (respectively) by Make
2CXX = g++
3NVCC ?= nvcc 2NVCC ?= nvcc
4# -fPIC is needed in all cases, as we may be linked into another shared library 3# -fPIC is needed in all cases, as we may be linked into another shared library
5CFLAGS = -fPIC 4CFLAGS = -fPIC
diff --git a/libsmctrl_test_mask_shared.cu b/libsmctrl_test_mask_shared.cu
index f3e8933..e4ddde7 100644
--- a/libsmctrl_test_mask_shared.cu
+++ b/libsmctrl_test_mask_shared.cu
@@ -126,7 +126,7 @@ int test_constrained_size_and_location(enum partitioning_type part_type) {
126 if (smids_partitioned_h[NUM_BLOCKS - 1] > (enabled_tpc * sms_per_tpc) + sms_per_tpc - 1 || 126 if (smids_partitioned_h[NUM_BLOCKS - 1] > (enabled_tpc * sms_per_tpc) + sms_per_tpc - 1 ||
127 smids_partitioned_h[NUM_BLOCKS - 1] < (enabled_tpc * sms_per_tpc)) { 127 smids_partitioned_h[NUM_BLOCKS - 1] < (enabled_tpc * sms_per_tpc)) {
128 printf("%s: ***Test failure.***\n" 128 printf("%s: ***Test failure.***\n"
129 "%s: Reason: With TPC mask set to" 129 "%s: Reason: With TPC mask set to "
130 "constrain all kernels to TPC %d, a kernel was run and found " 130 "constrain all kernels to TPC %d, a kernel was run and found "
131 "to run on an SM IDs: as high as %d and as low as %d (range of %d to %d expected).\n", 131 "to run on an SM IDs: as high as %d and as low as %d (range of %d to %d expected).\n",
132 program_invocation_name, program_invocation_name, enabled_tpc, smids_partitioned_h[NUM_BLOCKS - 1], smids_partitioned_h[0], enabled_tpc * sms_per_tpc + sms_per_tpc - 1, enabled_tpc * sms_per_tpc); 132 program_invocation_name, program_invocation_name, enabled_tpc, smids_partitioned_h[NUM_BLOCKS - 1], smids_partitioned_h[0], enabled_tpc * sms_per_tpc + sms_per_tpc - 1, enabled_tpc * sms_per_tpc);