From 03ae77e35d35b2a82f5387d1903cfa954b696edd Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Tue, 20 May 2025 11:01:09 -0400 Subject: Correct how path of libsmctrl.so is specified in LD_PRELOAD by nvtaskset Indicate that the loader should search the standard library paths by ommiting the "./" prefix. --- nvtaskset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvtaskset.c b/nvtaskset.c index b8873ab..74f88d7 100644 --- a/nvtaskset.c +++ b/nvtaskset.c @@ -134,7 +134,7 @@ int main(int argc, char **argv) { } // Tell loader to initialize libsmctrl.so first // TODO: Append, rather than overwrite LD_PRELOAD - setenv("LD_PRELOAD", "./libsmctrl.so", 1); + setenv("LD_PRELOAD", "libsmctrl.so", 1); // Explictly set the number of channels, otherwise CUDA will only use two // (see paper for why that causes problems) setenv("CUDA_DEVICE_MAX_CONNECTIONS", "8", 1); -- cgit v1.2.2