Skip to content

Commit ebacfbb

Browse files
committed
Prefer libcupti.so.12.3 to libcupti.so.12.4
1 parent 2da2446 commit ebacfbb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/container/install-nsight.sh

+14
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,17 @@ apt-get install -y nsight-compute nsight-systems-cli
1616
apt-get clean
1717

1818
rm -rf /var/lib/apt/lists/*
19+
20+
# "Wrong event order has been detected when adding events to the collection"
21+
# workaround during nsys report post-processing with 2024.1.1 and CUDA 12.3
22+
NSYS202411=/opt/nvidia/nsight-systems-cli/2024.1.1
23+
if [[ -d "${NSYS202411}" ]]; then
24+
LIBCUPTI123=/opt/nvidia/nsight-compute/2023.3.0/host/target-linux-x64/libcupti.so.12.3
25+
if [[ ! -f "${LIBCUPTI123}" ]]; then
26+
echo "2024.1.1 workaround expects to be running inside 12.3.0 container"
27+
exit 1
28+
fi
29+
# Use libcupti.so.12.3 because this is a CUDA 12.3 container
30+
ln -s "${LIBCUPTI123}" "${NSYS202411}/target-linux-x64/libcupti.so.12.3"
31+
mv "${NSYS202411}/target-linux-x64/libcupti.so.12.4" "${NSYS202411}/target-linux-x64/_libcupti.so.12.4"
32+
fi

0 commit comments

Comments
 (0)