Adding initial structure, RAVEN module deactivated by default

parents
*.exe
HTML
*.bat
*.mat
*.pdf
*.dll
*.exe
*.so*
Thumbs.db
.DS_Store
*.asv
*.wav
*.xlsx
*.docx
*.dll
*.csv
*.h5
*.ita
*.fig
*.png
*.jpeg
*.sofa
*.spk
*.unv
*.stl
svnaccess
*.lib
*.exp
*.skp
*.skb
cmake_minimum_required( VERSION 2.8 )
project( ITASimulationScheduler )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
set( ITA_SIMULATION_SCHEDULER_COMMON_BUILD TRUE )
# general dependencies
vista_use_package( ITABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( VistaCoreLibs REQUIRED VistaBase VistaMath VistaInterProcComm )
vista_find_package( MPI OPTIONAL QUIET )
# configuration
if( NOT DEFINED ITA_SIMULATION_SCHEDULER_APPS )
set( ITA_SIMULATION_SCHEDULER_APPS ON CACHE BOOL "Build applications for scheduling and distributed simulations" )
endif( )
if( NOT DEFINED ITA_SIMULATION_SCHEDULER_TESTS )
set( ITA_SIMULATION_SCHEDULER_TESTS ON CACHE BOOL "Build tests for scheduling and distributed simulations" )
endif( )
if( NOT DEFINED ITA_SIMULATION_SCHEDULER_BENCHMARKS )
set( ITA_SIMULATION_SCHEDULER_BENCHMARKS OFF CACHE BOOL "Build benchmarks for scheduling and distributed simulations" )
endif( )
if( NOT DEFINED ITA_SIMULATION_SCHEDULER_RAVEN_MODULE )
set( ITA_SIMULATION_SCHEDULER_RAVEN_MODULE OFF CACHE BOOL "Build RAVEN scheduler workers and applications for distributed computing" )
endif( )
# resolve further dependencies
if( ITA_SIMULATION_SCHEDULER_RAVEN_MODULE )
vista_use_package( RAVEN REQUIRED FIND_DEPENDENCIES )
endif( )
# includes
include_directories( "include" )
# sources
include( "include/_SourceFiles.cmake" )
include( "src/_SourceFiles.cmake" )
# preprocessor
if( BUILD_SHARED_LIBS )
add_definitions( -DITA_SIMULATION_SCHEDULER_EXPORT )
else( )
add_definitions( -DITA_SIMULATION_SCHEDULER_BUILD_STATIC )
endif( )
if( ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_BASE_STATIC )
endif( )
if( ITA_VISTA_BUILD_STATIC )
add_definitions( -DVISTABASE_STATIC -DVISTAMATH_STATIC -DVISTAASPECTS_STATIC -DVISTATOOLS_STATIC -DVISTAINTERPROCCOMM_STATIC )
endif( )
if( NOT WIN32 )
add_definitions( -std=gnu++11 )
endif( )
add_definitions( -D_USE_MATH_DEFINES -DNOMINMAX )
# linker
add_library( ITASimulationScheduler ${ProjectSources} )
target_link_libraries( ITASimulationScheduler ${VISTA_USE_PACKAGE_LIBRARIES} )
# config
vista_configure_lib( ITASimulationScheduler )
vista_install( ITASimulationScheduler )
set( ITAGEO_INCLUDE_OUTDIR "${CMAKE_CURRENT_SOURCE_DIR}/include" )
vista_create_cmake_configs( ITASimulationScheduler )
vista_create_default_info_file( ITASimulationScheduler )
set_property( TARGET ITASimulationScheduler PROPERTY FOLDER "ITASimulationScheduler" )
# apps
if( ITA_SIMULATION_SCHEDULER_APPS )
add_subdirectory( "apps" )
if( ITA_SIMULATION_SCHEDULER_RAVEN_MODULE )
add_subdirectory( "apps/raven" )
endif( )
endif( )
# tests
if( ITA_SIMULATION_SCHEDULER_TESTS )
add_subdirectory( "tests" )
if( ITA_SIMULATION_SCHEDULER_RAVEN_MODULE )
add_subdirectory( "tests/raven" )
endif( )
endif( )
# benchmarks
if( ITA_SIMULATION_SCHEDULER_BENCHMARKS )
add_subdirectory( "benchmarks" )
if( ITA_SIMULATION_SCHEDULER_RAVEN_MODULE )
add_subdirectory( "benchmarks/raven" )
endif( )
endif( )
Copyright 2019-2020 Institute of Technical Acoustics, RWTH Aachen University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use files of this project except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
\ No newline at end of file
## ITASimulationScheduler
ITASimulationScheduler is a C++ library and application collection to run distributed acoustic simulations.
It comes with scheduling features for real-time and sequential (offline) task procedures using threads and/or MPI.
### License
Copyright 2019-2020 Institute of Technical Acoustics, RWTH Aachen University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use files of this project except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
### Quick build guide
It is recommended to clone and follow the build guide of the parent project [ITASuite](https://git.rwth-aachen.de/ita/ITASuite), which includes this project as a submodule. To include RAVEN, access to the repository must be granted.
cmake_minimum_required( VERSION 2.8 )
project( ITASimulationSchedulerApps )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
vista_use_package( ITASimulationScheduler REQUIRED FIND_DEPENDENCIES )
set( ProjectSources "simsched_cli.cpp" )
add_executable( simsched_cli ${ProjectSources} )
target_link_libraries( simsched_cli ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_set_target_msvc_arguments( simsched_cli "localhost:12350" )
vista_configure_app( simsched_cli )
vista_install( simsched_cli )
vista_create_default_info_file( simsched_cli )
set_property( TARGET simsched_cli PROPERTY FOLDER "apps" )
/*
* ----------------------------------------------------------------
*
* ITA simulation scheduler
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2019-2020
*
* ----------------------------------------------------------------
* ____ __________ _______
* // / //__ ___/ // _ |
* // / // / // /_| |
* // / // / // ___ |
* //__/ //__/ //__/ |__|
*
* ----------------------------------------------------------------
*
*/
#include <ITAException.h>
#include <iostream>
#include <string>
using namespace std;
void syntax_error()
{
cout << "Syntax: simsched_cli hostname:port" << endl;
}
int main( int argc, char* argv[] )
{
if( argc < 2 )
{
cout << "Too few arguments given (" << argc << ")" << endl;
syntax_error();
return 255;
}
try
{
ITA_EXCEPT_NOT_IMPLEMENTED;
}
catch( ITAException& err )
{
cout << "[ERROR]: " << err << endl;
return 255;
}
return 0;
}
/*
* ----------------------------------------------------------------
*
* ITA simulation scheduler
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2019-2020
*
* ----------------------------------------------------------------
* ____ __________ _______
* // / //__ ___/ // _ |
* // / // / // /_| |
* // / // / // ___ |
* //__/ //__/ //__/ |__|
*
* ----------------------------------------------------------------
*
*/
#ifndef INCLUDE_WATCHER_ITA_SIMULATION_SCHEDULER_DEFINITIONS
#define INCLUDE_WATCHER_ITA_SIMULATION_SCHEDULER_DEFINITIONS
#if ( defined WIN32 ) && !( defined ITA_SIMULATION_SCHEDULER_STATIC )
#ifdef ITA_SIMULATION_SCHEDULER_STATIC_EXPORT
#define ITA_SIMULATION_SCHEDULER_STATIC_API __declspec( dllexport )
#else
#define ITA_SIMULATION_SCHEDULER_STATIC_API __declspec( dllimport )
#endif
#else
#define ITA_SIMULATION_SCHEDULER_STATIC_API
#endif
#endif // INCLUDE_WATCHER_ITA_SIMULATION_SCHEDULER_DEFINITIONS
set( RelativeDir "include/ITASimulationScheduler/Raven" )
set( RelativeSourceGroup "Header Files\\ITASimulationScheduler\\Raven" )
set( DirFiles
#RavenResult.h
#RavenTask.h
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
foreach( File ${DirFiles} )
list( APPEND LocalSourceGroupFiles "${RelativeDir}/${File}" )
list( APPEND ProjectSources "${RelativeDir}/${File}" )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
set( RelativeDir "include/ITASimulationScheduler" )
set( RelativeSourceGroup "Header Files\\ITASimulationScheduler" )
set( SubDirs Raven )
set( DirFiles
Definitions.h
#_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
foreach( File ${DirFiles} )
list( APPEND LocalSourceGroupFiles "${RelativeDir}/${File}" )
list( APPEND ProjectSources "${RelativeDir}/${File}" )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
set( SubDirFiles "" )
foreach( Dir ${SubDirs} )
list( APPEND SubDirFiles "${RelativeDir}/${Dir}/_SourceFiles.cmake" )
endforeach()
foreach( SubDirFile ${SubDirFiles} )
include( ${SubDirFile} )
endforeach()
set( RelativeDir "include" )
set( RelativeSourceGroup "Header Files" )
set( SubDirs ITASimulationScheduler )
set( DirFiles
#_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
foreach( File ${DirFiles} )
list( APPEND LocalSourceGroupFiles "${RelativeDir}/${File}" )
list( APPEND ProjectSources "${RelativeDir}/${File}" )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
set( SubDirFiles "" )
foreach( Dir ${SubDirs} )
list( APPEND SubDirFiles "${RelativeDir}/${Dir}/_SourceFiles.cmake" )
endforeach()
foreach( SubDirFile ${SubDirFiles} )
include( ${SubDirFile} )
endforeach()
set( RelativeDir "src/ITASimulationScheduler/Raven" )
set( RelativeSourceGroup "Source Files\\ITASimulationScheduler\\Raven" )
set( DirFiles
#RavenResult.cpp
#RavenTask.cpp
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
foreach( File ${DirFiles} )
list( APPEND LocalSourceGroupFiles "${RelativeDir}/${File}" )
list( APPEND ProjectSources "${RelativeDir}/${File}" )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
set( RelativeDir "src/ITASimulationScheduler" )
set( RelativeSourceGroup "Source Files\\ITASimulationScheduler" )
set( SubDirs Raven )
set( DirFiles
dummy.cpp
#_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
foreach( File ${DirFiles} )
list( APPEND LocalSourceGroupFiles "${RelativeDir}/${File}" )
list( APPEND ProjectSources "${RelativeDir}/${File}" )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
set( SubDirFiles "" )
foreach( Dir ${SubDirs} )
list( APPEND SubDirFiles "${RelativeDir}/${Dir}/_SourceFiles.cmake" )
endforeach()
foreach( SubDirFile ${SubDirFiles} )
include( ${SubDirFile} )
endforeach()
set( RelativeDir "src" )
set( RelativeSourceGroup "Source Files" )
set( SubDirs ITASimulationScheduler )
set( DirFiles
#_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
set( LocalSourceGroupFiles )
foreach( File ${DirFiles} )
list( APPEND LocalSourceGroupFiles "${RelativeDir}/${File}" )
list( APPEND ProjectSources "${RelativeDir}/${File}" )
endforeach()
source_group( ${DirFiles_SourceGroup} FILES ${LocalSourceGroupFiles} )
set( SubDirFiles "" )
foreach( Dir ${SubDirs} )
list( APPEND SubDirFiles "${RelativeDir}/${Dir}/_SourceFiles.cmake" )
endforeach()
foreach( SubDirFile ${SubDirFiles} )
include( ${SubDirFile} )
endforeach()
cmake_minimum_required( VERSION 2.8 )
project( ITASimulationSchedulerTests )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
vista_use_package( ITASimulationScheduler REQUIRED FIND_DEPENDENCIES )
set( ProjectSources "simsched_add_task.cpp" )
add_executable( simsched_add_task ${ProjectSources} )
target_link_libraries( simsched_add_task ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_set_target_msvc_arguments( simsched_add_task "1000" )
vista_configure_app( simsched_add_task )
vista_install( simsched_add_task )
vista_create_default_info_file( simsched_add_task )
set_property( TARGET simsched_add_task PROPERTY FOLDER "tests" )
/*
* ----------------------------------------------------------------
*
* ITA simulation scheduler
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2019-2020
*
* ----------------------------------------------------------------
* ____ __________ _______
* // / //__ ___/ // _ |
* // / // / // /_| |
* // / // / // ___ |
* //__/ //__/ //__/ |__|
*
* ----------------------------------------------------------------
*
*/
#include <ITAException.h>
#include <iostream>
#include <string>
using namespace std;
void syntax_error()
{
cout << "Syntax: simsched_add_task NUMTASKS" << endl;
}
int main( int argc, char* argv[] )
{
if( argc < 2 )
{
cout << "Too few arguments given (" << argc << ")" << endl;
syntax_error();
return 255;
}
try
{
ITA_EXCEPT_NOT_IMPLEMENTED;
}
catch( ITAException& err )
{
cout << "[ERROR]: " << err << endl;
return 255;
}
return 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