Skip to content

Commit 811c0af

Browse files
authored
dcgm: 3.3.5 -> 3.3.9; cudaPackages_10{,_0,_1,_2}: drop (#357655)
2 parents 7baa9f1 + e3d26a1 commit 811c0af

File tree

19 files changed

+282
-416
lines changed

19 files changed

+282
-416
lines changed

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
After you run ALTER EXTENSION, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull requests [#6797](https://github.com/timescale/timescaledb/pull/6797).
2929
PostgreSQL 13 is no longer supported in TimescaleDB v2.16.
3030

31+
- Support for CUDA 10 has been dropped, as announced in the 24.11 release notes.
32+
3133
- `kanata` was updated to v1.7.0, which introduces several breaking changes.
3234
See the release notes of
3335
[v1.7.0](https://github.com/jtroo/kanata/releases/tag/v1.7.0)

pkgs/applications/science/math/caffe/default.nix

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,11 @@
1414
, Accelerate, CoreGraphics, CoreVideo
1515
, lmdbSupport ? true, lmdb
1616
, leveldbSupport ? true, leveldb, snappy
17-
, cudaSupport ? config.cudaSupport, cudaPackages ? { }
18-
, cudnnSupport ? cudaSupport
19-
, ncclSupport ? false
2017
, pythonSupport ? false, python ? null, numpy ? null
2118
, substituteAll
2219
}:
2320

2421
let
25-
inherit (cudaPackages) backendStdenv cudatoolkit nccl;
26-
# The default for cudatoolkit 10.1 is CUDNN 8.0.5, the last version to support CUDA 10.1.
27-
# However, this caffe does not build with CUDNN 8.x, so we use CUDNN 7.6.5 instead.
28-
# Earlier versions of cudatoolkit use pre-8.x CUDNN, so we use the default.
29-
hasCudnn =
30-
if lib.versionOlder cudatoolkit.version "10.1"
31-
then cudaPackages ? cudnn
32-
else cudaPackages ? cudnn_7_6;
33-
3422
toggle = bool: if bool then "ON" else "OFF";
3523

3624
test_model_weights = fetchurl {
@@ -57,20 +45,12 @@ stdenv.mkDerivation rec {
5745
# boost_python expects
5846
[ (if pythonSupport then "-Dpython_version=${python.pythonVersion}" else "-DBUILD_python=OFF")
5947
"-DBLAS=open"
60-
] ++ (if cudaSupport then [
61-
"-DCUDA_ARCH_NAME=All"
62-
"-DCUDA_HOST_COMPILER=${backendStdenv.cc}/bin/cc"
63-
] else [ "-DCPU_ONLY=ON" ])
64-
++ ["-DUSE_NCCL=${toggle ncclSupport}"]
65-
++ ["-DUSE_LEVELDB=${toggle leveldbSupport}"]
48+
"-DCPU_ONLY=ON"
49+
] ++ ["-DUSE_LEVELDB=${toggle leveldbSupport}"]
6650
++ ["-DUSE_LMDB=${toggle lmdbSupport}"];
6751

6852
buildInputs = [ boost gflags glog protobuf hdf5-cpp opencv4 blas ]
69-
++ lib.optional cudaSupport cudatoolkit
70-
++ lib.optional (lib.versionOlder cudatoolkit.version "10.1" && hasCudnn) cudaPackages.cudnn
71-
++ lib.optional (lib.versionAtLeast cudatoolkit.version "10.1" && hasCudnn) cudaPackages.cudnn_7_6
7253
++ lib.optional lmdbSupport lmdb
73-
++ lib.optional ncclSupport nccl
7454
++ lib.optionals leveldbSupport [ leveldb snappy ]
7555
++ lib.optionals pythonSupport [ python numpy ]
7656
++ lib.optionals stdenv.hostPlatform.isDarwin [ Accelerate CoreGraphics CoreVideo ]
@@ -105,9 +85,6 @@ stdenv.mkDerivation rec {
10585
substituteInPlace src/caffe/util/io.cpp --replace \
10686
'SetTotalBytesLimit(kProtoReadBytesLimit, 536870912)' \
10787
'SetTotalBytesLimit(kProtoReadBytesLimit)'
108-
'' + lib.optionalString (cudaSupport && lib.versionAtLeast cudatoolkit.version "9.0") ''
109-
# CUDA 9.0 doesn't support sm_20
110-
sed -i 's,20 21(20) ,,' cmake/Cuda.cmake
11188
'';
11289

11390
preConfigure = lib.optionalString pythonSupport ''
@@ -150,10 +127,7 @@ stdenv.mkDerivation rec {
150127
maintainers = [ ];
151128
broken =
152129
(pythonSupport && (python.isPy310))
153-
|| cudaSupport
154130
|| !(leveldbSupport -> (leveldb != null && snappy != null))
155-
|| !(cudnnSupport -> (hasCudnn && cudaSupport))
156-
|| !(ncclSupport -> (cudaSupport && !nccl.meta.unsupported))
157131
|| !(pythonSupport -> (python != null && numpy != null))
158132
;
159133
license = licenses.bsd2;
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
diff --git a/cmake/FindJsoncpp.cmake b/cmake/FindJsoncpp.cmake
2+
index abedf7bb85..d7a52f5c7b 100644
3+
--- a/cmake/FindJsoncpp.cmake
4+
+++ b/cmake/FindJsoncpp.cmake
5+
@@ -16,8 +16,8 @@
6+
7+
if (NOT TARGET JsonCpp::JsonCpp)
8+
find_package(jsoncpp REQUIRED CONFIG)
9+
- set(JSONCPP_STATIC_LIBS jsoncpp_static)
10+
- set(JSONCPP_INCLUDE_PATH $<TARGET_PROPERTY:jsoncpp_static,INTERFACE_INCLUDE_DIRECTORIES>)
11+
+ set(JSONCPP_STATIC_LIBS jsoncpp)
12+
+ set(JSONCPP_INCLUDE_PATH $<TARGET_PROPERTY:jsoncpp,INTERFACE_INCLUDE_DIRECTORIES>)
13+
endif()
14+
# set(Jsoncpp_PATH_PREFIXES /usr/local "${Jsoncpp_ROOT}" "$ENV{HOME}")
15+
# foreach(prefix ${Jsoncpp_PATH_PREFIXES})
16+
diff --git a/cmake/FindLibevent.cmake b/cmake/FindLibevent.cmake
17+
index 354d6f9b99..38aca9534e 100644
18+
--- a/cmake/FindLibevent.cmake
19+
+++ b/cmake/FindLibevent.cmake
20+
@@ -26,16 +26,12 @@
21+
endforeach()
22+
23+
find_path(LIBEVENT_INCLUDE_DIR evhttp.h event.h PATHS ${Libevent_INCLUDE_PATHS})
24+
-find_library(LIBEVENT_STATIC_LIB NAMES libevent.a libevent_core.a libevent_extra.a PATHS ${Libevent_LIB_PATHS})
25+
-find_library(LIBEVENT_PTHREAD_STATIC_LIB NAMES libevent_pthreads.a PATHS ${Libevent_LIB_PATHS})
26+
+find_library(LIBEVENT_STATIC_LIB NAMES libevent.so libevent_core.so libevent_extra.so PATHS ${Libevent_LIB_PATHS})
27+
+find_library(LIBEVENT_PTHREAD_STATIC_LIB NAMES libevent_pthreads.so PATHS ${Libevent_LIB_PATHS})
28+
29+
-if (LIBEVENT_INCLUDE_DIR AND LIBEVENT_STATIC_LIB AND LIBEVENT_PTHREAD_STATIC_LIB)
30+
+if (LIBEVENT_INCLUDE_DIR AND LIBEVENT_STATIC_LIB)
31+
set(Libevent_FOUND TRUE)
32+
- add_library(libevent_event_static STATIC IMPORTED)
33+
- set_target_properties(libevent_event_static PROPERTIES IMPORTED_LOCATION ${LIBEVENT_STATIC_LIB})
34+
- add_library(libevent_event_pthread STATIC IMPORTED)
35+
- set_target_properties(libevent_event_pthread PROPERTIES IMPORTED_LOCATION ${LIBEVENT_PTHREAD_STATIC_LIB})
36+
- set(LIBEVENT_STATIC_LIBS libevent_event_static libevent_event_pthread)
37+
+ set(LIBEVENT_STATIC_LIBS ${LIBEVENT_STATIC_LIB} ${LIBEVENT_PTHREAD_STATIC_LIB})
38+
else ()
39+
set(Libevent_FOUND FALSE)
40+
endif ()
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
diff --git a/common/CudaWorker/DcgmDgemm.cpp b/common/CudaWorker/DcgmDgemm.cpp
2+
index 8d33a3256e..6b3284258d 100644
3+
--- a/common/CudaWorker/DcgmDgemm.cpp
4+
+++ b/common/CudaWorker/DcgmDgemm.cpp
5+
@@ -17,6 +17,7 @@
6+
7+
#include <exception>
8+
#include <stdexcept>
9+
+#include <cinttypes>
10+
11+
#define CU_CHK(op) \
12+
if (auto const status = op; status != CUBLAS_STATUS_SUCCESS) \
13+
@@ -122,4 +123,4 @@
14+
return CUBLAS_STATUS_SUCCESS;
15+
}
16+
17+
-} // namespace DcgmNs
18+
\ No newline at end of file
19+
+} // namespace DcgmNs
20+
diff --git a/common/DcgmError.h b/common/DcgmError.h
21+
index 8638cdceb1..e8d817c0d4 100644
22+
--- a/common/DcgmError.h
23+
+++ b/common/DcgmError.h
24+
@@ -17,6 +17,7 @@
25+
26+
#include <sstream>
27+
#include <string>
28+
+#include <cinttypes>
29+
30+
#include <dcgm_agent.h>
31+
#include <dcgm_errors.h>
32+
diff --git a/common/DcgmStringHelpers.cpp b/common/DcgmStringHelpers.cpp
33+
index b41917e3b7..1fe63980c7 100644
34+
--- a/common/DcgmStringHelpers.cpp
35+
+++ b/common/DcgmStringHelpers.cpp
36+
@@ -17,6 +17,7 @@
37+
38+
#include <cstring>
39+
#include <string>
40+
+#include <algorithm>
41+
42+
/*****************************************************************************/
43+
void dcgmTokenizeString(const std::string &src, const std::string &delimiter, std::vector<std::string> &tokens)
44+
diff --git a/dcgmi/CommandOutputController.cpp b/dcgmi/CommandOutputController.cpp
45+
index 5057205564..8520171efa 100644
46+
--- a/dcgmi/CommandOutputController.cpp
47+
+++ b/dcgmi/CommandOutputController.cpp
48+
@@ -24,6 +24,7 @@
49+
#include "dcgm_agent.h"
50+
#include <DcgmStringHelpers.h>
51+
#include <algorithm>
52+
+#include <functional>
53+
#include <cstdarg>
54+
#include <iostream>
55+
#include <string>
56+
diff --git a/dcgmi/Diag.h b/dcgmi/Diag.h
57+
index a326f7b949..563fb3c9c0 100755
58+
--- a/dcgmi/Diag.h
59+
+++ b/dcgmi/Diag.h
60+
@@ -24,6 +24,7 @@
61+
#define DIAG_H_
62+
63+
#include <optional>
64+
+#include <functional>
65+
66+
#include "Command.h"
67+
#include "CommandOutputController.h"
68+
diff --git a/hostengine/src/HostEngineOutput.cpp b/hostengine/src/HostEngineOutput.cpp
69+
index 23c6ca9f54..798b83b3e4 100644
70+
--- a/hostengine/src/HostEngineOutput.cpp
71+
+++ b/hostengine/src/HostEngineOutput.cpp
72+
@@ -20,6 +20,7 @@
73+
#include <iostream>
74+
#include <limits>
75+
#include <string_view>
76+
+#include <unordered_map>
77+
78+
namespace
79+
{
80+
@@ -365,4 +366,4 @@
81+
}
82+
}
83+
os << std::endl;
84+
-}
85+
\ No newline at end of file
86+
+}
87+
diff --git a/nvvs/src/NvvsCommon.cpp b/nvvs/src/NvvsCommon.cpp
88+
index 8f7888649b..1604d9dabe 100644
89+
--- a/nvvs/src/NvvsCommon.cpp
90+
+++ b/nvvs/src/NvvsCommon.cpp
91+
@@ -15,6 +15,7 @@
92+
*/
93+
#include <sstream>
94+
#include <stdexcept>
95+
+#include <algorithm>
96+
#include <sys/stat.h>
97+
#include <sys/types.h>
98+
99+
diff --git a/sdk/nvidia/nvml/nvml_loader/nvml_loader.cpp b/sdk/nvidia/nvml/nvml_loader/nvml_loader.cpp
100+
index 9eebeaf1c4..6e21201229 100644
101+
--- a/sdk/nvidia/nvml/nvml_loader/nvml_loader.cpp
102+
+++ b/sdk/nvidia/nvml/nvml_loader/nvml_loader.cpp
103+
@@ -20,6 +20,7 @@
104+
105+
#include <atomic>
106+
#include <mutex>
107+
+#include <cstdlib>
108+
109+
static void *g_nvmlLib = 0;
110+
static std::atomic_uint32_t g_nvmlStaticLibResetHooksCount = 1;

0 commit comments

Comments
 (0)