Commit 93a4fd5a authored by Viacheslav's avatar Viacheslav

Added initial support for IB

parent dc760123
Pipeline #23136689 passed with stages
in 8 minutes and 22 seconds
......@@ -16,6 +16,8 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
if(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -traceback -fpic")
......@@ -41,7 +43,6 @@ include_directories(${COMMLIB_DIRS})
add_subdirectory(src)
if(INCLUDE_TESTS)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
include(CTest)
configure_file(${CMAKE_SOURCE_DIR}/cmake/CTestCustom.cmake
${CMAKE_BINARY_DIR}/CTestCustom.cmake
......
# - Try to find IB Verbs
# Once done this will define
# IB_VERBS_FOUND - System has IB Verbs
# IB_VERBS_INCLUDE_DIRS - The IB Verbs include directories
# IB_VERBS_LIBRARIES - The libraries needed to use IB Verbs
find_path(IB_VERBS_INCLUDE_DIR verbs.h
HINTS /usr/local/include /usr/include/infiniband)
find_library(IB_VERBS_LIBRARY NAMES ibverbs
PATHS /usr/local/lib /usr/lib /usr/lib64)
find_path(RDMA_CM_INCLUDE_DIR rdma_cma.h
HINTS /usr/local/include /usr/include/rdma)
find_library(RDMA_CM_LIBRARY NAMES rdmacm
PATHS /usr/local/lib /usr/lib /usr/lib64)
set(IB_VERBS_INCLUDE_DIRS ${IB_VERBS_INCLUDE_DIR})
set(IB_VERBS_LIBRARIES ${IB_VERBS_LIBRARY})
set(RDMA_CM_INCLUDE_DIRS ${RDMA_CM_INCLUDE_DIR})
set(RDMA_CM_LIBRARIES ${RDMA_CM_LIBRARY})
set(IB_INCLUDE_DIRS ${IB_VERBS_INCLUDE_DIR} ${IB_VERBS_LIBRARY} ${RDMA_CM_INCLUDE_DIR} ${RDMA_CM_LIBRARY})
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set IB_VERBS_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(IB_VERBS DEFAULT_MSG
IB_VERBS_INCLUDE_DIR IB_VERBS_LIBRARY)
find_package_handle_standard_args(RDMA_CM DEFAULT_MSG
RDMA_CM_INCLUDE_DIR RDMA_CM_LIBRARY)
set(IB_LIBRARIES ${IB_VERBS_LIBRARY} ${RDMA_CM_LIBRARY})
mark_as_advanced(IB_VERBS_INCLUDE_DIR IB_VERBS_LIBRARY)
mark_as_advanced(RDMA_CM_INCLUDE_DIR RDMA_CM_LIBRARY)
mark_as_advanced(IB_INCLUDE_DIRS IB_LIBRARIES)
\ No newline at end of file
//
// Created by vbolnykh on 6/4/18.
//
#include "IBTransport.h"
//
// Created by vbolnykh on 6/4/18.
//
#ifndef MIMICCOMMLIB_IBTRANSPORT_H
#define MIMICCOMMLIB_IBTRANSPORT_H
#include "Transport.h"
#include "DataTypes.h"
#include <infiniband/verbs.h>
class IBTransport : public Transport {
};
#endif //MIMICCOMMLIB_IBTRANSPORT_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment