diff --git a/containers/docker/Dockerfile b/containers/docker/Dockerfile
index 0b45614849d1230f676f436a799e2093a00ad6e4..d2ae57c8451e02716fffd3f2517dfc8cf1f12645 100644
--- a/containers/docker/Dockerfile
+++ b/containers/docker/Dockerfile
@@ -9,6 +9,7 @@ WORKDIR /root
 #RUN cat /etc/apt/sources.list.d/oneAPI.list && sleep 5s
 #RUN ls -l /usr/share/keyrings/oneapi-archive-keyring.gpg && sleep 5s
 # make sure the debian bullseye us up to date, install needed packages
+COPY --chown=root:root containers/docker/dockerstuff/debianrepos/debian.sources /etc/apt/sources.list.d/
 RUN apt update
 RUN DEBIAN_FRONTEND=noninteractive apt -y upgrade
 # install packages needed to build binaries
@@ -22,6 +23,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt -y install intel-oneapi-compiler-fortran
 RUN DEBIAN_FRONTEND=noninteractive apt -y install liblapacke-dev liblapacke64-dev libopenblas-dev libopenblas-openmp-dev libopenblas64-dev libopenblas64-openmp-dev
 # install MPI stack
 RUN DEBIAN_FRONTEND=noninteractive apt -y install mpi-default-dev mpi-default-bin
+# install packages needed for nvtx instrumentation
+RUN DEBIAN_FRONTEND=noninteractive apt -y install nvidia-cuda-dev
 # install packages needed to run python scripts for checks
 RUN DEBIAN_FRONTEND=noninteractive apt -y install python3 python-is-python3 python3-regex
 # install packages needed to run doxygen to create html docs
diff --git a/containers/docker/dockerstuff/debianrepos/debian.sources b/containers/docker/dockerstuff/debianrepos/debian.sources
new file mode 100644
index 0000000000000000000000000000000000000000..b04cc01529653b0713cc69d94d83dc8bde439758
--- /dev/null
+++ b/containers/docker/dockerstuff/debianrepos/debian.sources
@@ -0,0 +1,13 @@
+Types: deb
+# http://snapshot.debian.org/archive/debian/20240423T150000Z
+URIs: http://deb.debian.org/debian
+Suites: bookworm bookworm-updates bookworm-proposed-updates
+Components: main non-free non-free-firmware contrib
+Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
+
+Types: deb
+# http://snapshot.debian.org/archive/debian-security/20240423T150000Z
+URIs: http://deb.debian.org/debian-security
+Suites: bookworm-security
+Components: main non-free non-free-firmware contrib
+Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
diff --git a/src/make.inc b/src/make.inc
index 70a9cb6398cf742bbc31e2aa410eaefc7ac8bd5d..24ec96e3382c9e1d797cd3df253a6ad21d1ebf3c 100644
--- a/src/make.inc
+++ b/src/make.inc
@@ -102,7 +102,8 @@ endif
 ifdef CUDA_HOME
 override MAGMA_LDFLAGS+= -L$(CUDA_HOME)/lib64
 endif
-override MAGMA_LDFLAGS+= -lmagma -lcudart -lnvToolsExt
+#override MAGMA_LDFLAGS+= -lmagma -lcudart -lnvToolsExt
+override MAGMA_LDFLAGS+= -lmagma -lcudart
 #the next endif is for USE_MAGMA
 endif