Skip to content

Commit

Permalink
adding headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nournadar committed Dec 11, 2022
1 parent 27df2d4 commit 27fc836
Show file tree
Hide file tree
Showing 143 changed files with 615 additions and 314 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ list(APPEND CMAKE_MODULE_PATH "${ECRC_CMAKE_MODULE_PATH}")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules")
include(EcrcInit)
include(GenPkgConfig)
include(FindPkgConfig)
find_package(PkgConfig REQUIRED)

# Create project and check C compiler
cmake_policy(SET CMP0048 NEW)
Expand Down Expand Up @@ -173,6 +173,9 @@ if(STARPU)
if(STARPU_FOUND)
include_directories(${STARPU_INCLUDE_DIRS})
link_directories(${STARPU_LIBRARY_DIRS})
link_directories(${STARPU_SHM_STATIC_LIBRARY_DIRS})
#message(STATUS "STARPU_SHM_STATIC_LIBRARY_DIRS=${STARPU_SHM_STATIC_LIBRARY_DIRS}")
#message(STATUS "STARPU_SHM_STATIC_FOUND=${STARPU_SHM_FOUND_STATIC}")
add_definitions("-DSTARPU")
list(APPEND DOXYGEN_ENABLED_SECTIONS STARPU)
else()
Expand Down
2 changes: 2 additions & 0 deletions COPYRIGHTS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
24 changes: 12 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ pipeline {
# if any command exits with value other than 0 (zero)
# loads modules
module load gcc/5.5.0
module load mkl/2018-initial
module load openmpi/3.0.0-gcc-5.5.0
module load starpu/1.2.3-gcc-5.5.0-mkl-openmpi-3.0.0
module load gsl/2.4-gcc-5.5.0
module load cmake/3.9.6
module load gcc/10.2.0
module load mkl/2020.0.166
module load openmpi/4.1.0-gcc-10.2.0
module load starpu/1.2.10-gcc-10.2.0-mkl-openmpi-4.1.0
module load gsl/2.6-gcc-10.2.0
module load cmake/3.21.2
# variables
BUILDDIR="$WORKSPACE/build/"
Expand Down Expand Up @@ -63,12 +63,12 @@ pipeline {
# if any command exits with value other than 0 (zero)
# loads modules
module load gcc/5.5.0
module load mkl/2018-initial
module load openmpi/3.0.0-gcc-5.5.0
module load starpu/1.2.3-gcc-5.5.0-mkl-openmpi-3.0.0
module load gsl/2.4-gcc-5.5.0
module load cmake/3.9.6
module load gcc/10.2.0
module load mkl/2020.0.166
module load openmpi/4.1.0-gcc-10.2.0
module load starpu/1.2.10-gcc-10.2.0-mkl-openmpi-4.1.0
module load gsl/2.6-gcc-10.2.0
module load cmake/3.21.2
# variables
BUILDDIR="$WORKSPACE/build/"
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1
2 changes: 1 addition & 1 deletion cmake_modules/ecrc
Submodule ecrc updated 57 files
+2 −2 LICENCE.txt
+2 −0 modules/AuxilaryFlags.cmake
+2 −0 modules/ColorizeMessage.cmake
+9 −3 modules/EcrcInit.cmake
+2 −0 modules/FindHeadersAndLibs.cmake
+2 −0 modules/ParseArguments.cmake
+2 −0 modules/PrintFindStatus.cmake
+2 −0 modules/Ressources.cmake
+10 −8 modules/RulesPrecisions.cmake
+2 −1 modules/find/ECRC-Copyright.txt
+908 −0 modules/find/FindAL4SAN.cmake
+127 −81 modules/find/FindBLAS.cmake
+2 −0 modules/find/FindBLASEXT.cmake
+78 −0 modules/find/FindCBLAS.cmake
+19 −13 modules/find/FindCHAMELEON.cmake
+49 −0 modules/find/FindCommon.cmake
+3 −1 modules/find/FindELPA.cmake
+2 −0 modules/find/FindEZTRACE.cmake
+7 −7 modules/find/FindFFTW.cmake
+2 −0 modules/find/FindFXT.cmake
+514 −0 modules/find/FindHCORE.cmake
+713 −707 modules/find/FindHICMA.cmake
+2 −0 modules/find/FindHWLOC.cmake
+2 −0 modules/find/FindHYPRE.cmake
+47 −0 modules/find/FindInit.cmake
+32 −5 modules/find/FindLAPACK.cmake
+80 −69 modules/find/FindLAPACKE.cmake
+6 −4 modules/find/FindLAPACKEXT.cmake
+2 −0 modules/find/FindMAGMA.cmake
+2 −0 modules/find/FindMETIS.cmake
+2 −0 modules/find/FindMUMPS.cmake
+60 −0 modules/find/FindNLOPT.cmake
+92 −0 modules/find/FindPAGMO.cmake
+2 −0 modules/find/FindPAMPA.cmake
+2 −0 modules/find/FindPAPI.cmake
+2 −0 modules/find/FindPARMETIS.cmake
+224 −222 modules/find/FindPARSEC.cmake
+2 −0 modules/find/FindPASTIX.cmake
+26 −0 modules/find/FindPETSc.cmake
+420 −0 modules/find/FindPLASMA.cmake
+2 −0 modules/find/FindPTSCOTCH.cmake
+99 −0 modules/find/FindPkgconfigLibrariesAbsolutePath.cmake
+2 −0 modules/find/FindQUARK.cmake
+30 −6 modules/find/FindSCALAPACK.cmake
+2 −0 modules/find/FindSCOTCH.cmake
+2 −0 modules/find/FindSIMGRID.cmake
+2 −0 modules/find/FindSTARPU.cmake
+424 −0 modules/find/FindSTARSH.cmake
+2 −0 modules/find/FindSUITESPARSE.cmake
+867 −0 modules/find/FindTANAL.cmake
+2 −0 modules/find/FindTMG.cmake
+70 −0 modules/find/LibrariesAbsolutePath.cmake
+61 −0 modules/find/PagmoFindBoost.cmake
+25 −16 modules/precision_generator/Conversion.py
+11 −16 modules/precision_generator/codegen.py
+11 −11 modules/precision_generator/genDependencies.py
+742 −704 modules/precision_generator/subs.py
4 changes: 2 additions & 2 deletions examples/approximation/dense.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/approximation/dense.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
4 changes: 2 additions & 2 deletions examples/approximation/minimal.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/approximation/minimal.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
4 changes: 2 additions & 2 deletions examples/approximation/randtlr.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/approximation/randtlr.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
4 changes: 2 additions & 2 deletions examples/approximation/spatial.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/approximation/spatial.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
1 change: 1 addition & 0 deletions examples/problem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
set(examples_files
"spatial.c"
"spatial_bivariate.c"
"spatial_non_gaussian.c"
"randtlr.c"
"minimal.c"
"dense.c"
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/acoustic.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2020 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/acoustic.c
* @version 0.3.0
* @version 0.3.1
* @auther Rabab Alomairy
* @author Aleksandr Mikhalev
* @date 2020-06-09
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/dense.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/dense.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/minimal.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/minimal.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/particles.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/particles.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
*/
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/randtlr.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/randtlr.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/rbf_cube.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2020 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/rbf_cube.c
* @version 0.3.0
* @version 0.3.1
* @auther Rabab Alomairy
* @author Aleksandr Mikhalev
* @date 2020-06-09
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/rbf_virus.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2020 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/rbf_virus.c
* @version 0.3.0
* @version 0.3.1
* @auther Rabab Alomairy
* @author Aleksandr Mikhalev
* @date 2020-06-09
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/spatial.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/spatial.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
4 changes: 2 additions & 2 deletions examples/problem/spatial_bivariate.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/spatial.c
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2020-06-09
* */
Expand Down
88 changes: 88 additions & 0 deletions examples/problem/spatial_non_gaussian.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file examples/problem/spatial_non_gaussian.c
* @version 0.3.1
* @author Sameh Abdulah
* @date 2020-06-09
* */

#include <stdio.h>
#include <stdlib.h>
#include <starsh.h>
#include <starsh-spatial.h>

int main(int argc, char **argv)
{
int problem_ndim = 2;
// Possible values for kernel_type are:
int kernel_type = STARSH_SPATIAL_NON_GAUSSIAN_SIMD;
// Correlation length
double beta = 0.1;
// Smoothing parameter for Matern kernel
double nu = 0.5;
// Scaling factor
double sigma = 1.0;
// Set level of noise
double noise = 0;
// Bivariate correlation
double corr = 0.1;
// Size of desired matrix
int N = 5000;
// 'N' for nonsymmetric matrix and 'd' for double precision
char symm = 'N', dtype = 'd';
int ndim = 2;
STARSH_int shape[2] = {N, N};
// OBSOLETE3 for kernel PARSIMONIOUS and
// OBSOLETE4 for kernel PARSIMONIOUS2
enum STARSH_PARTICLES_PLACEMENT place = STARSH_PARTICLES_OBSOLETE1;
int info;
srand(0);
// Generate data for spatial statistics problem
STARSH_ssdata *data;
STARSH_kernel *kernel;
// STARSH_SPATIAL for spatial statistics problem
// kernel_type is enum type, for possible values look into starsh-spatial.h
// STARSH_SATIAL_NDIM to indicate next parameter shows dimensionality of
// spatial statistics problem
// STARSH_SPATIAL_BETA to indicate next parameter is correlation length
// STARSH_SPATIAL_NU to indicate next parameter is smoothing parameter for
// Matern kernel
// STARSH_SPATIAL_NOISE to indicate next parameter is a noise
// 0 at the end to indicate end of arguments
info = starsh_application((void **)&data, &kernel, N, dtype,
STARSH_SPATIAL, kernel_type, STARSH_SPATIAL_NDIM, problem_ndim,
STARSH_SPATIAL_BETA, beta, STARSH_SPATIAL_NU, nu,
STARSH_SPATIAL_NOISE, noise, STARSH_SPATIAL_PLACE, place,
STARSH_SPATIAL_SIGMA, 1.0,
0);
if(info != 0)
{
printf("wrong parameters for the non-gaussian spatial statistics problem\n");
return info;
}
// Init problem with given data and kernel and print short info
STARSH_problem *problem;
info = starsh_problem_new(&problem, ndim, shape, symm, dtype, data, data,
kernel, "Spatial Statistics example");
if(info != 0)
{
printf("Error in starsh problem\n");
exit(info);
}
printf("STARSH problem was succesfully generated\n");
starsh_problem_info(problem);
// Compute dense matrix
Array *array;
info = starsh_problem_to_array(problem, &array);
if(info != 0)
{
printf("Error when computing matrix elements\n");
exit(info);
}
printf("Matrix was successfully computed\n");
return 0;
}
4 changes: 2 additions & 2 deletions include/common.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
Expand All @@ -9,7 +9,7 @@
* @cond
* This command in pair with endcond will prevent file from being documented.
*
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2020-06-09
* */
Expand Down
4 changes: 2 additions & 2 deletions include/starsh-acoustic.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2020 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file include/starsh-acoustic.h
* @version 0.3.0
* @version 0.3.1
* @auther Rabab Alomairy
* @author Aleksandr Mikhalev
* @date 2020-06-09
Expand Down
4 changes: 2 additions & 2 deletions include/starsh-cauchy.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*! @copyright (c) 2017 King Abdullah University of Science and
/*! @copyright (c) 2017-2022 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file include/starsh-minimal.h
* @version 0.3.0
* @version 0.3.1
* @author Aleksandr Mikhalev
* @date 2017-11-07
* */
Expand Down
Loading

0 comments on commit 27fc836

Please sign in to comment.