Closed kingchc closed 3 years ago
Hi @kingchc, you are right, but cuda component depends on UCS (not UCX). Can you please try following patch
diff --git a/src/utils/cuda/kernels/Makefile.am b/src/utils/cuda/kernels/Makefile.am
index c0ec059..c8014d2 100644
--- a/src/utils/cuda/kernels/Makefile.am
+++ b/src/utils/cuda/kernels/Makefile.am
@@ -8,7 +8,7 @@
#
NVCC = nvcc
-NVCCFLAGS = "-I${XCCL_TOP_SRCDIR}/src -I${XCCL_TOP_SRCDIR}/src/core" --compiler-options -fno-rtti,-fno-exceptions
+NVCCFLAGS = ${CPPFLAGS} --compiler-options -fno-rtti,-fno-exceptions
NV_ARCH_FLAGS = -arch=sm_50 \
-gencode=arch=compute_37,code=sm_37 \
-gencode=arch=compute_50,code=sm_50 \
@Sergei-Lebedev - Thanks for the quick response and explanation. I can confirm the patch you posted works for me.
Error during make
Command for building XCCL
UCX was installed in a local directory, config options:
../configure --disable-logging --disable-debug --disable-assertions --disable-params-check --prefix=/home/chchu/tools/ucx/build/install --with-cuda=/usr/local/cuda
Workaround: adding
${UCX_CPPFLAGS}
toNVCCFLAGS
in Makefile.am and recompile.Is it because the UCX is not installed in a default path? For such scenarios, should we apply a patch shown here or perhaps add a config time option to allow users specify addtional NVCCFLGAS?