Skip to content

Commit 2f77a1b

Browse files
up: license, documentation, clang compiler bug fixed, and other small improvements.
1 parent c12ed59 commit 2f77a1b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+3544
-1165
lines changed

LICENSE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ MIT License
22

33
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
44

5+
GMAP website: https://gmap.pucrs.br
6+
7+
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
8+
9+
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
10+
511
Permission is hereby granted, free of charge, to any person obtaining a copy
612
of this software and associated documentation files (the "Software"), to deal
713
in the Software without restriction, including without limitation the rights

NPB-FF/BT/bt.cpp

Lines changed: 58 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,60 @@
1-
/**
2-
* NASA Advanced Supercomputing Parallel Benchmarks C++
3-
*
4-
* based on NPB 3.3.1
5-
*
6-
* original version and technical report:
7-
* http://www.nas.nasa.gov/Software/NPB/
8-
*
9-
* Authors:
10-
* R. Van der Wijngaart
11-
* T. Harris
12-
* M. Yarrow
13-
* H. Jin
14-
*
15-
* C++ version:
16-
* Dalvan Griebler <[email protected]>
17-
* Gabriell Alves de Araujo <[email protected]>
18-
* Júnior Löff <[email protected]>
19-
*
20-
* FastFlow version:
21-
* Júnior Löff <[email protected]>
22-
*/
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
5+
GMAP website: https://gmap.pucrs.br
6+
7+
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
8+
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
9+
10+
Permission is hereby granted, free of charge, to any person obtaining a copy
11+
of this software and associated documentation files (the "Software"), to deal
12+
in the Software without restriction, including without limitation the rights
13+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
copies of the Software, and to permit persons to whom the Software is
15+
furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included in all
18+
copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
SOFTWARE.
27+
28+
------------------------------------------------------------------------------
29+
30+
The original NPB 3.4.1 version was written in Fortran and belongs to:
31+
http://www.nas.nasa.gov/Software/NPB/
32+
33+
Authors of the Fortran code:
34+
R. Van der Wijngaart
35+
T. Harris
36+
M. Yarrow
37+
H. Jin
38+
39+
------------------------------------------------------------------------------
40+
41+
The serial C++ version is a translation of the original NPB 3.4.1
42+
Serial C++ version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-SER
43+
44+
Authors of the C++ code:
45+
Dalvan Griebler <[email protected]>
46+
Gabriell Araujo <[email protected]>
47+
Júnior Löff <[email protected]>
48+
49+
------------------------------------------------------------------------------
50+
51+
The FastFlow version is a parallel implementation of the serial C++ version
52+
FastFlow version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-FF
53+
54+
Authors of the FastFlow code:
55+
Júnior Löff <[email protected]>
56+
57+
*/
2358

2459
#include "ff/ff.hpp"
2560
#include "ff/parallel_for.hpp"
@@ -227,6 +262,7 @@ int main(int argc, char* argv[]){
227262
}else{
228263
mflops=0.0;
229264
}
265+
setenv("FF_NUM_THREADS","1",0);
230266
c_print_results((char*)"BT",
231267
class_npb,
232268
grid_points[0],

NPB-FF/CG/cg.cpp

Lines changed: 57 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,59 @@
1-
/**
2-
* NASA Advanced Supercomputing Parallel Benchmarks C++
3-
*
4-
* based on NPB 3.3.1
5-
*
6-
* original version and technical report:
7-
* http://www.nas.nasa.gov/Software/NPB/
8-
*
9-
* Authors:
10-
* M. Yarrow
11-
* C. Kuszmaul
12-
*
13-
* C++ version:
14-
* Dalvan Griebler <[email protected]>
15-
* Gabriell Alves de Araujo <[email protected]>
16-
* Júnior Löff <[email protected]>
17-
*
18-
* FastFlow version:
19-
* Júnior Löff <[email protected]>
20-
*/
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
5+
GMAP website: https://gmap.pucrs.br
6+
7+
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
8+
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
9+
10+
Permission is hereby granted, free of charge, to any person obtaining a copy
11+
of this software and associated documentation files (the "Software"), to deal
12+
in the Software without restriction, including without limitation the rights
13+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
copies of the Software, and to permit persons to whom the Software is
15+
furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included in all
18+
copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
SOFTWARE.
27+
28+
------------------------------------------------------------------------------
29+
30+
The original NPB 3.4.1 version was written in Fortran and belongs to:
31+
http://www.nas.nasa.gov/Software/NPB/
32+
33+
Authors of the Fortran code:
34+
M. Yarrow
35+
C. Kuszmaul
36+
H. Jin
37+
38+
------------------------------------------------------------------------------
39+
40+
The serial C++ version is a translation of the original NPB 3.4.1
41+
Serial C++ version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-SER
42+
43+
Authors of the C++ code:
44+
Dalvan Griebler <[email protected]>
45+
Gabriell Araujo <[email protected]>
46+
Júnior Löff <[email protected]>
47+
48+
------------------------------------------------------------------------------
49+
50+
The FastFlow version is a parallel implementation of the serial C++ version
51+
FastFlow version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-FF
52+
53+
Authors of the FastFlow code:
54+
Júnior Löff <[email protected]>
55+
56+
*/
2157

2258
#include "ff/ff.hpp"
2359
#include "ff/parallel_for.hpp"
@@ -392,6 +428,7 @@ int main(int argc, char **argv){
392428
}else{
393429
mflops = 0.0;
394430
}
431+
setenv("FF_NUM_THREADS","1",0);
395432
c_print_results((char*)"CG",
396433
class_npb,
397434
NA,

NPB-FF/EP/ep.cpp

Lines changed: 58 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,60 @@
1-
/**
2-
* NASA Advanced Supercomputing Parallel Benchmarks C++
3-
*
4-
* based on NPB 3.3.1
5-
*
6-
* original version and technical report:
7-
* http://www.nas.nasa.gov/Software/NPB/
8-
*
9-
* Authors:
10-
* P. O. Frederickson
11-
* D. H. Bailey
12-
* A. C. Woo
13-
*
14-
* C++ version:
15-
* Dalvan Griebler <[email protected]>
16-
* Gabriell Alves de Araujo <[email protected]>
17-
* Júnior Löff <[email protected]>
18-
*
19-
* FastFlow version:
20-
* Júnior Löff <[email protected]>
21-
*/
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
5+
GMAP website: https://gmap.pucrs.br
6+
7+
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
8+
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
9+
10+
Permission is hereby granted, free of charge, to any person obtaining a copy
11+
of this software and associated documentation files (the "Software"), to deal
12+
in the Software without restriction, including without limitation the rights
13+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
copies of the Software, and to permit persons to whom the Software is
15+
furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included in all
18+
copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
SOFTWARE.
27+
28+
------------------------------------------------------------------------------
29+
30+
The original NPB 3.4.1 version was written in Fortran and belongs to:
31+
http://www.nas.nasa.gov/Software/NPB/
32+
33+
Authors of the Fortran code:
34+
P. O. Frederickson
35+
D. H. Bailey
36+
A. C. Woo
37+
H. Jin
38+
39+
------------------------------------------------------------------------------
40+
41+
The serial C++ version is a translation of the original NPB 3.4.1
42+
Serial C++ version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-SER
43+
44+
Authors of the C++ code:
45+
Dalvan Griebler <[email protected]>
46+
Gabriell Araujo <[email protected]>
47+
Júnior Löff <[email protected]>
48+
49+
------------------------------------------------------------------------------
50+
51+
The FastFlow version is a parallel implementation of the serial C++ version
52+
FastFlow version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-FF
53+
54+
Authors of the FastFlow code:
55+
Júnior Löff <[email protected]>
56+
57+
*/
2258

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

319+
setenv("FF_NUM_THREADS","1",0);
283320
c_print_results((char*)"EP",
284321
CLASS,
285322
M+1,

NPB-FF/FT/ft.cpp

Lines changed: 57 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,59 @@
1-
/**
2-
* NASA Advanced Supercomputing Parallel Benchmarks C++
3-
*
4-
* based on NPB 3.3.1
5-
*
6-
* original version and technical report:
7-
* http://www.nas.nasa.gov/Software/NPB/
8-
*
9-
* Authors:
10-
* D. Bailey
11-
* W. Saphir
12-
*
13-
* C++ version:
14-
* Dalvan Griebler <[email protected]>
15-
* Gabriell Alves de Araujo <[email protected]>
16-
* Júnior Löff <[email protected]>
17-
*
18-
* FastFlow version:
19-
* Júnior Löff <[email protected]>
20-
*/
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2021 Parallel Applications Modelling Group - GMAP
5+
GMAP website: https://gmap.pucrs.br
6+
7+
Pontifical Catholic University of Rio Grande do Sul (PUCRS)
8+
Av. Ipiranga, 6681, Porto Alegre - Brazil, 90619-900
9+
10+
Permission is hereby granted, free of charge, to any person obtaining a copy
11+
of this software and associated documentation files (the "Software"), to deal
12+
in the Software without restriction, including without limitation the rights
13+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
copies of the Software, and to permit persons to whom the Software is
15+
furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included in all
18+
copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
SOFTWARE.
27+
28+
------------------------------------------------------------------------------
29+
30+
The original NPB 3.4.1 version was written in Fortran and belongs to:
31+
http://www.nas.nasa.gov/Software/NPB/
32+
33+
Authors of the Fortran code:
34+
D. Bailey
35+
W. Saphir
36+
H. Jin
37+
38+
------------------------------------------------------------------------------
39+
40+
The serial C++ version is a translation of the original NPB 3.4.1
41+
Serial C++ version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-SER
42+
43+
Authors of the C++ code:
44+
Dalvan Griebler <[email protected]>
45+
Gabriell Araujo <[email protected]>
46+
Júnior Löff <[email protected]>
47+
48+
------------------------------------------------------------------------------
49+
50+
The FastFlow version is a parallel implementation of the serial C++ version
51+
FastFlow version: https://github.com/GMAP/NPB-CPP/tree/master/NPB-FF
52+
53+
Authors of the FastFlow code:
54+
Júnior Löff <[email protected]>
55+
56+
*/
2157

2258
#include "ff/ff.hpp"
2359
#include "ff/parallel_for.hpp"
@@ -290,6 +326,7 @@ int main(int argc, char **argv){
290326
}else{
291327
mflops = 0.0;
292328
}
329+
setenv("FF_NUM_THREADS","1",0);
293330
c_print_results((char*)"FT",
294331
class_npb,
295332
NX,

0 commit comments

Comments
 (0)