ucx
ucx copied to clipboard
UCX Build Failure: Go Bindings Compilation Error – Cannot Find cuda and ucx Package Paths
env
NVIDIA-SMI 535.183.01 Driver Version: 535.183.01 CUDA Version: 12.2
install
./autogen.sh
./contrib/configure-release --prefix=/opt/ucx --enable-shared --disable-static --disable-doxygen-doc --enable-optimizations --enable-cma --enable-devel-headers --with-cuda=/usr/local/cuda --with-verbs --with-dm --enable-mt
make -j 8
log
make[3]: Leaving directory '/home/gehao/njw1123/test_nixl/ucx-master/src/tools/perf'
make[2]: Leaving directory '/home/gehao/njw1123/test_nixl/ucx-master/src/tools/perf'
Making all in src/tools/profile
make[2]: Entering directory '/home/gehao/njw1123/test_nixl/ucx-master/src/tools/profile'
CC ucx_read_profile-read_profile.o
CCLD ucx_read_profile
make[2]: Leaving directory '/home/gehao/njw1123/test_nixl/ucx-master/src/tools/profile'
Making all in bindings/go
make[2]: Entering directory '/home/gehao/njw1123/test_nixl/ucx-master/bindings/go'
cd /home/gehao/njw1123/test_nixl/ucx-master/bindings/go/src/examples/perftest ;\
go build --tags=cuda -o /home/gehao/njw1123/test_nixl/ucx-master/bindings/go/.libs/tmp/goperftest
cd /home/gehao/njw1123/test_nixl/ucx-master/bindings/go/src/ucx ;\
go build
perftest.go:19:2: cannot find package "github.com/openucx/ucx/bindings/go/src/cuda" in any of:
/usr/local/go/src/github.com/openucx/ucx/bindings/go/src/cuda (from $GOROOT)
/root/go/src/github.com/openucx/ucx/bindings/go/src/cuda (from $GOPATH)
perftest.go:17:2: cannot find package "github.com/openucx/ucx/bindings/go/src/ucx" in any of:
/usr/local/go/src/github.com/openucx/ucx/bindings/go/src/ucx (from $GOROOT)
/root/go/src/github.com/openucx/ucx/bindings/go/src/ucx (from $GOPATH)
make[2]: *** [Makefile:665: goperftest] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/gehao/njw1123/test_nixl/ucx-master/bindings/go'
make[1]: *** [Makefile:796: all-recursive] Error 1
make[1]: Leaving directory '/home/gehao/njw1123/test_nixl/ucx-master'
make: *** [Makefile:660: all] Error 2
Please try this patch https://github.com/openucx/ucx/pull/10727
Please note, if you don't need go bindings you can disable them using --without-go configure option.