Skip to content

Commit 2c3b567

Browse files
UCT/GDA: Fix compilation - v.1.20.x (#10973)
* UCT/GDA: Fix compilation with cuda 12.9 * BUILD: Add missing rule for clean --------- Co-authored-by: Ofir Farjon <ofarjon@nvidia.com>
1 parent 7e03b78 commit 2c3b567

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

config/cuda.am

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ endef
3131

3232
CUDA_DEP_FILES := $(shell find $(DEPDIR)/cuda/ -type f -name *.d 2>/dev/null)
3333
-include $(CUDA_DEP_FILES)
34+
35+
clean-local:
36+
-rm -rf $(DEPDIR)/cuda
37+
38+
distclean-local:
39+
-rm -rf $(DEPDIR)/cuda

src/uct/ib/mlx5/gdaki/configure.m4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ AS_IF([test "x$cuda_happy" = "xyes"],
2727
]) # "x$with_doca_gpunetio" != "xguess"
2828
]) # "x$with_doca_gpunetio" != "xno"
2929
30+
AS_IF([test "x$CUDA_MAJOR_VERSION" = "x12" -a "x$CUDA_MINOR_VERSION" = "x9"],
31+
[
32+
GPUNETIO_CFLAGS="$GPUNETIO_CFLAGS -D_LIBCUDACXX_ATOMIC_UNSAFE_AUTOMATIC_STORAGE"
33+
])
34+
3035
save_CPPFLAGS="$CPPFLAGS"
3136
CPPFLAGS="$CPPFLAGS $CUDA_CFLAGS $GPUNETIO_CFLAGS"
3237

0 commit comments

Comments
 (0)