@@ -127,25 +127,6 @@ else
127127 cuda_wheel_dir = ' nixl_cu12'
128128endif
129129
130- # DOCA GPUNETIO
131- if cuda_dep.found()
132- nvcc_cmd = find_program (' nvcc' , required : false )
133- if nvcc_cmd.found()
134- if nvcc_cmd.version().version_compare(' >=12.8' ) and nvcc_cmd.version().version_compare(' <13.0' )
135- doca_gpunetio_dep = dependency (' doca-gpunetio' , required : false )
136- else
137- warning (' CUDA version = ' + nvcc_cmd.version() + ' , GPUNETIO plugin will be disabled' )
138- doca_gpunetio_dep = disabler ()
139- endif
140- else
141- warning (' nvcc not found, GPUNETIO plugin will be disabled' )
142- doca_gpunetio_dep = disabler ()
143- endif
144- else
145- warning (' CUDA not found, GPUNETIO plugin will be disabled' )
146- doca_gpunetio_dep = disabler ()
147- endif
148-
149130# Check for etcd-cpp-api - use multiple methods for discovery
150131etcd_dep = dependency (' etcd-cpp-api' , required : false )
151132etcd_inc_path = get_option (' etcd_inc_path' )
@@ -213,10 +194,11 @@ nvcc_prog = find_program('nvcc', required: false)
213194ucx_gpu_device_api_available = false
214195if ucx_dep.found() and cuda_dep.found() and nvcc_prog.found()
215196 cuda = meson .get_compiler(' cuda' )
197+ # TODO: Expose doca_gpunetio_dep through UCX
216198 have_gpu_side = cuda.compiles('''
217199 #include <ucp/api/device/ucp_device_impl.h>
218200 int main() { return 0; }
219- ''' , dependencies : ucx_dep, args : nvcc_flags)
201+ ''' , dependencies : [ ucx_dep, doca_gpunetio_dep] , args : nvcc_flags)
220202
221203 have_host_side = cpp.compiles('''
222204 #include <ucp/api/device/ucp_host.h>
@@ -233,6 +215,7 @@ if ucx_dep.found() and cuda_dep.found() and nvcc_prog.found()
233215 ' GPU-side compile' : have_gpu_side,
234216 ' Host-side compile' : have_host_side,
235217 ' nvcc available' : nvcc_prog.found(),
218+ ' DOCA GPUNETIO found' : doca_gpunetio_dep.found(),
236219 }, section : ' UCX GPU Device API' , bool_yn : true )
237220endif
238221
0 commit comments