Build fails if ucp is not installed/available
When building Linktest without UCX support the build fails because vcluster.cc
includes the vcluster_ucp.h
header, which in turn includes ucp/api/ucp.h
, which in this scenario is unavailable. Here is the error:
CC vcluster.o
In file included from vcluster.cc:21:
vcluster_ucp.h:14:10: fatal error: ucp/api/ucp.h: No such file or directory
14 | #include <ucp/api/ucp.h>
| ^~~~~~~~~~~~~~~
Compiling with include for vcluster_ucp.h
commented works. The includes need to be adapted so that the includes are only active when necessary. Are they even necessary at all? Why do the main vcluster
class functions need to be aware of their specialization?