Commit 6993db50 authored by Dmitry I. Lyakh's avatar Dmitry I. Lyakh

Started MPI parallel runtime ...

parent 51add9a8
......@@ -45,6 +45,8 @@ if(MPI_LIB)
set(MPI_BIN_PATH ${MPI_ROOT_DIR}/bin)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMPI_ENABLED")
else()
if(MPI_ROOT_DIR OR MPI_BIN_PATH)
......
/** ExaTN:: Tensor Runtime: Task-based execution layer for tensor operations
REVISION: 2019/12/06
REVISION: 2020/02/27
Copyright (C) 2018-2019 Tiffany Mintz, Dmitry Lyakh, Alex McCaskey
Copyright (C) 2018-2019 Oak Ridge National Laboratory (UT-Battelle)
Copyright (C) 2018-2020 Dmitry Lyakh, Tiffany Mintz, Alex McCaskey
Copyright (C) 2018-2020 Oak Ridge National Laboratory (UT-Battelle)
**/
#include "tensor_runtime.hpp"
......@@ -39,6 +39,12 @@ TensorRuntime::~TensorRuntime()
}
void TensorRuntime::enableParallelExecution(MPI_Comm communicator)
{
return;
}
void TensorRuntime::launchExecutionThread()
{
if(!(alive_.load())){
......
/** ExaTN:: Tensor Runtime: Task-based execution layer for tensor operations
REVISION: 2019/12/06
REVISION: 2020/02/27
Copyright (C) 2018-2019 Tiffany Mintz, Dmitry Lyakh, Alex McCaskey
Copyright (C) 2018-2019 Oak Ridge National Laboratory (UT-Battelle)
Copyright (C) 2018-2020 Dmitry Lyakh, Tiffany Mintz, Alex McCaskey
Copyright (C) 2018-2020 Oak Ridge National Laboratory (UT-Battelle)
Rationale:
(a) The execution space consists of one or more DAGs in which nodes
......@@ -49,6 +49,8 @@ Rationale:
#include "tensor_operation.hpp"
#include "tensor_method.hpp"
#include "mpi.h"
#include <map>
#include <list>
#include <string>
......@@ -73,6 +75,9 @@ public:
TensorRuntime & operator=(TensorRuntime &&) noexcept = delete;
~TensorRuntime();
/** Sets up the parallel distributed configuration. **/
void enableParallelExecution(MPI_Comm communicator);
/** Resets the logging level (0:none) [MAIN THREAD]. **/
void resetLoggingLevel(int level = 0);
......
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