Skip to content

Commit

Permalink
up: license, documentation, clang compiler bug fixed, and other small…
Browse files Browse the repository at this point in the history
… improvements.
  • Loading branch information
dalvangriebler committed Jul 21, 2021
1 parent c12ed59 commit 2f77a1b
Show file tree
Hide file tree
Showing 75 changed files with 3,544 additions and 1,165 deletions.
6 changes: 6 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ MIT License

Copyright (c) 2021 Parallel Applications Modelling Group - GMAP

GMAP website: https://gmap.pucrs.br

Pontifical Catholic University of Rio Grande do Sul (PUCRS)

Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Expand Down
80 changes: 58 additions & 22 deletions NPB-FF/BT/bt.cpp
Original file line number Diff line number Diff line change
@@ -1,25 +1,60 @@
/**
* NASA Advanced Supercomputing Parallel Benchmarks C++
*
* based on NPB 3.3.1
*
* original version and technical report:
* http://www.nas.nasa.gov/Software/NPB/
*
* Authors:
* R. Van der Wijngaart
* T. Harris
* M. Yarrow
* H. Jin
*
* C++ version:
* Dalvan Griebler <dalvangriebler@gmail.com>
* Gabriell Alves de Araujo <hexenoften@gmail.com>
* Júnior Löff <loffjh@gmail.com>
*
* FastFlow version:
* Júnior Löff <loffjh@gmail.com>
*/
/*
MIT License
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
GMAP website: https://gmap.pucrs.br
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
The original NPB 3.4.1 version was written in Fortran and belongs to:
http://www.nas.nasa.gov/Software/NPB/
Authors of the Fortran code:
R. Van der Wijngaart
T. Harris
M. Yarrow
H. Jin
------------------------------------------------------------------------------
The serial C++ version is a translation of the original NPB 3.4.1
Serial C++ version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-SER
Authors of the C++ code:
Dalvan Griebler <dalvangriebler@gmail.com>
Gabriell Araujo <hexenoften@gmail.com>
Júnior Löff <loffjh@gmail.com>
------------------------------------------------------------------------------
The FastFlow version is a parallel implementation of the serial C++ version
FastFlow version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-FF
Authors of the FastFlow code:
Júnior Löff <loffjh@gmail.com>
*/

#include "ff/ff.hpp"
#include "ff/parallel_for.hpp"
Expand Down Expand Up @@ -227,6 +262,7 @@ int main(int argc, char* argv[]){
}else{
mflops=0.0;
}
setenv("FF_NUM_THREADS","1",0);
c_print_results((char*)"BT",
class_npb,
grid_points[0],
Expand Down
77 changes: 57 additions & 20 deletions NPB-FF/CG/cg.cpp
Original file line number Diff line number Diff line change
@@ -1,23 +1,59 @@
/**
* NASA Advanced Supercomputing Parallel Benchmarks C++
*
* based on NPB 3.3.1
*
* original version and technical report:
* http://www.nas.nasa.gov/Software/NPB/
*
* Authors:
* M. Yarrow
* C. Kuszmaul
*
* C++ version:
* Dalvan Griebler <dalvangriebler@gmail.com>
* Gabriell Alves de Araujo <hexenoften@gmail.com>
* Júnior Löff <loffjh@gmail.com>
*
* FastFlow version:
* Júnior Löff <loffjh@gmail.com>
*/
/*
MIT License
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
GMAP website: https://gmap.pucrs.br
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
The original NPB 3.4.1 version was written in Fortran and belongs to:
http://www.nas.nasa.gov/Software/NPB/
Authors of the Fortran code:
M. Yarrow
C. Kuszmaul
H. Jin
------------------------------------------------------------------------------
The serial C++ version is a translation of the original NPB 3.4.1
Serial C++ version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-SER
Authors of the C++ code:
Dalvan Griebler <dalvangriebler@gmail.com>
Gabriell Araujo <hexenoften@gmail.com>
Júnior Löff <loffjh@gmail.com>
------------------------------------------------------------------------------
The FastFlow version is a parallel implementation of the serial C++ version
FastFlow version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-FF
Authors of the FastFlow code:
Júnior Löff <loffjh@gmail.com>
*/

#include "ff/ff.hpp"
#include "ff/parallel_for.hpp"
Expand Down Expand Up @@ -392,6 +428,7 @@ int main(int argc, char **argv){
}else{
mflops = 0.0;
}
setenv("FF_NUM_THREADS","1",0);
c_print_results((char*)"CG",
class_npb,
NA,
Expand Down
79 changes: 58 additions & 21 deletions NPB-FF/EP/ep.cpp
Original file line number Diff line number Diff line change
@@ -1,24 +1,60 @@
/**
* NASA Advanced Supercomputing Parallel Benchmarks C++
*
* based on NPB 3.3.1
*
* original version and technical report:
* http://www.nas.nasa.gov/Software/NPB/
*
* Authors:
* P. O. Frederickson
* D. H. Bailey
* A. C. Woo
*
* C++ version:
* Dalvan Griebler <dalvangriebler@gmail.com>
* Gabriell Alves de Araujo <hexenoften@gmail.com>
* Júnior Löff <loffjh@gmail.com>
*
* FastFlow version:
* Júnior Löff <loffjh@gmail.com>
*/
/*
MIT License
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
GMAP website: https://gmap.pucrs.br
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
The original NPB 3.4.1 version was written in Fortran and belongs to:
http://www.nas.nasa.gov/Software/NPB/
Authors of the Fortran code:
P. O. Frederickson
D. H. Bailey
A. C. Woo
H. Jin
------------------------------------------------------------------------------
The serial C++ version is a translation of the original NPB 3.4.1
Serial C++ version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-SER
Authors of the C++ code:
Dalvan Griebler <dalvangriebler@gmail.com>
Gabriell Araujo <hexenoften@gmail.com>
Júnior Löff <loffjh@gmail.com>
------------------------------------------------------------------------------
The FastFlow version is a parallel implementation of the serial C++ version
FastFlow version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-FF
Authors of the FastFlow code:
Júnior Löff <loffjh@gmail.com>
*/

#include "ff/ff.hpp"
#include "ff/parallel_for.hpp"
Expand Down Expand Up @@ -280,6 +316,7 @@ int main(int argc, char **argv){
printf("%3d%15.0f\n", i, q[i]);
}

setenv("FF_NUM_THREADS","1",0);
c_print_results((char*)"EP",
CLASS,
M+1,
Expand Down
77 changes: 57 additions & 20 deletions NPB-FF/FT/ft.cpp
Original file line number Diff line number Diff line change
@@ -1,23 +1,59 @@
/**
* NASA Advanced Supercomputing Parallel Benchmarks C++
*
* based on NPB 3.3.1
*
* original version and technical report:
* http://www.nas.nasa.gov/Software/NPB/
*
* Authors:
* D. Bailey
* W. Saphir
*
* C++ version:
* Dalvan Griebler <dalvangriebler@gmail.com>
* Gabriell Alves de Araujo <hexenoften@gmail.com>
* Júnior Löff <loffjh@gmail.com>
*
* FastFlow version:
* Júnior Löff <loffjh@gmail.com>
*/
/*
MIT License
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
GMAP website: https://gmap.pucrs.br
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
The original NPB 3.4.1 version was written in Fortran and belongs to:
http://www.nas.nasa.gov/Software/NPB/
Authors of the Fortran code:
D. Bailey
W. Saphir
H. Jin
------------------------------------------------------------------------------
The serial C++ version is a translation of the original NPB 3.4.1
Serial C++ version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-SER
Authors of the C++ code:
Dalvan Griebler <dalvangriebler@gmail.com>
Gabriell Araujo <hexenoften@gmail.com>
Júnior Löff <loffjh@gmail.com>
------------------------------------------------------------------------------
The FastFlow version is a parallel implementation of the serial C++ version
FastFlow version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-FF
Authors of the FastFlow code:
Júnior Löff <loffjh@gmail.com>
*/

#include "ff/ff.hpp"
#include "ff/parallel_for.hpp"
Expand Down Expand Up @@ -290,6 +326,7 @@ int main(int argc, char **argv){
}else{
mflops = 0.0;
}
setenv("FF_NUM_THREADS","1",0);
c_print_results((char*)"FT",
class_npb,
NX,
Expand Down
Loading

0 comments on commit 2f77a1b

Please sign in to comment.