Skip to content

[Issue]: CMake Build Issue on 3.5.19. #54

@osayamenja

Description

@osayamenja

How is this issue impacting you?

Application crash

Share Your Debug Logs

Hello experts! I installed NVSHMEM 3.5.19 via apt on Ubuntu 24.04 on a CUDA 13.0 machine. I cannot build my target with the minimal CMake configuration of find_package + linking nvshmem::nvshmem_host nvshmem::nvshmem_device.

The build fails with an error message I attached below.

My WAR so far is the below (LLM suggested). Please let me know if this an issue from my setup.

set_target_properties(nvshmem::nvshmem_host PROPERTIES
        IMPORTED_LOCATION_RELEASE "/usr/lib/x86_64-linux-gnu/nvshmem/13/libnvshmem_host.so.3"
)

Steps to Reproduce the Issue

CMakeLists.txt like below:

find_package(NVSHMEM REQUIRED)
set_target_properties(foo PROPERTIES
        CUDA_SEPARABLE_COMPILATION ON
        CUDA_RESOLVE_DEVICE_SYMBOLS ON
)
target_link_libraries(foo PRIVATE nvshmem::nvshmem_host nvshmem::nvshmem_device)

NVSHMEM Version

3.5.19

Your platform details

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Wed_Aug_20_01:58:59_PM_PDT_2025
Cuda compilation tools, release 13.0, V13.0.88
Build cuda_13.0.r13.0/compiler.36424714_0

Error Message & Behavior

ninja: error: '/usr/lib/x86_64-linux-gnu/libnvshmem_host.so.3.5.19', needed by 'CMakeFiles/testFlashMoE.dir/cmake_device_link.o', missing and no known rule to make it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions