Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions examples/cpp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
# limitations under the License.

nixl_example = executable('nixl_example',
'nixl_example.cpp',
dependencies: [nixl_dep, nixl_infra, nixl_common_deps, ucx_backend_dep, ucx_dep],
include_directories: [nixl_inc_dirs, utils_inc_dirs],
link_with: [serdes_lib],
install: true)
'nixl_example.cpp',
dependencies: [nixl_dep, nixl_infra, nixl_common_deps],
include_directories: [nixl_inc_dirs, utils_inc_dirs],
link_with: [serdes_lib],
install: true)

if etcd_dep.found()
etcd_example = executable('nixl_etcd_example',
'nixl_etcd_example.cpp',
dependencies: [nixl_dep, nixl_infra, nixl_common_deps, ucx_backend_dep, ucx_dep],
dependencies: [nixl_dep, nixl_infra, nixl_common_deps],
include_directories: [nixl_inc_dirs, utils_inc_dirs],
link_with: [serdes_lib],
install: true)
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ if ucx_path != ''
include_directories : include_directories(ucx_inc_path))
endif
else
ucx_dep = dependency('ucx', modules: ['ucx::ucs', 'ucx::ucp', 'ucx::uct'])
ucx_dep = dependency('ucx', modules: ['ucx::ucs', 'ucx::ucp', 'ucx::uct'], required: false)
endif

libfabric_path = get_option('libfabric_path')
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@

ucx_backend_inc_dirs = include_directories('./ucx')

subdir('ucx')
subdir('ucx_mo')
if ucx_dep.found()
subdir('ucx')
subdir('ucx_mo')
endif

subdir('posix') # Always try to build POSIX backend, it will handle its own dependencies
subdir('obj') # Always try to build Obj backend, it will handle its own dependencies
Expand Down
4 changes: 3 additions & 1 deletion src/utils/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

subdir('common')
subdir('serdes')
subdir('ucx')
if ucx_dep.found()
subdir('ucx')
endif
subdir('stream')
subdir('file')

Expand Down
2 changes: 0 additions & 2 deletions test/nixl/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ucx_backend_dep = declare_dependency(link_with: ucx_backend_lib, include_directories: [nixl_inc_dirs, utils_inc_dirs, '../../src/plugins/ucx'])

desc_example = executable('desc_example',
'desc_example.cpp',
dependencies: [nixl_dep, nixl_infra],
Expand Down
6 changes: 4 additions & 2 deletions test/unit/plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

subdir('ucx')
subdir('ucx_mo')
if ucx_dep.found()
subdir('ucx')
subdir('ucx_mo')
endif
subdir('posix')


Expand Down
14 changes: 7 additions & 7 deletions test/unit/utils/common/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#if cuda_dep.found()
# cuda_dependencies = [cuda_dep]
# cpp_args = '-DUSE_VRAM'
#else
# cuda_dependencies = []
# cpp_args = '-UUSE_VRAM'
#endif
if cuda_dep.found()
cuda_dependencies = [cuda_dep]
cpp_args = '-DUSE_VRAM'
else
cuda_dependencies = []
cpp_args = '-UUSE_VRAM'
endif

p2p_socket = executable('p2p_test',
'p2p_socket_test.cpp',
Expand Down
4 changes: 3 additions & 1 deletion test/unit/utils/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ if libfabric_dep.found()
endif
subdir('serdes')
subdir('stream')
subdir('ucx')
if ucx_dep.found()
subdir('ucx')
endif