Hi, Robert
Do you know how to link the nvshmem
in CMake?
I have try something like this
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${NVSHMEM_HOME}/include)
# COMPILE AND LINK
cuda_add_executable(main src/main.cu)
target_link_libraries(main ${NVSHMEM_HOME}/lib/libnvshmem.a "/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so" )
target_compile_options(main PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:
-arch=sm_61;
-std=c++11;
-rdc=true;
-Xcompiler;
-pthread
-lnvshmem
-lmpi_cxx
-lmpi
>)
but it always fails to link the nvsheme
library, and it returns me errors like undefined reference to nvsheme_
Could you please help me with this problem?