| Issue |
61476
|
| Summary |
[flang] [OpenMP] MG Benchmark in NPB3.4-OMP fails (UNSUCCESSFUL)
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
k-arrows
|
NAS Parallel Benchmarks:
https://www.nas.nasa.gov/software/npb.html
I used the following shell script.
```console
#!/bin/bash
class=C
num_threads=4
#download
wget https://www.nas.nasa.gov/assets/npb/NPB3.4.2.tar.gz
tar zxf NPB3.4.2.tar.gz
#set clang and flang
cd NPB3.4.2/NPB3.4-OMP/config
cp -p make.def.template make.def
sed -e 's/gcc/clang/g' -e 's/gfortran/flang-new/g' make.def.template > make.def
#compile
cd ../MG
make MG CLASS=${class}
#execute
cd ../bin
export OMP_NUM_THREADS=${num_threads}
./mg.${class}.x
```
Benchmark result:
```console
NAS Parallel Benchmarks (NPB3.4-OMP) - MG Benchmark
No input file. Using compiled defaults
Size: 512x 512x 512 (class C)
Iterations: 20
Number of available threads: 4
Initialization time: 4.893 seconds
iter 1
iter 5
iter 10
iter 15
iter 20
Benchmark completed
VERIFICATION FAILED
L2 Norm is 0.6061219369640E-06
The correct L2 Norm is 0.5706732285740E-06
MG Benchmark Completed.
Class = C
Size = 512x 512x 512
Iterations = 20
Time in seconds = 24.43
Total threads = 4
Avail threads = 4
Mop/s total = 6374.28
Mop/s/thread = 1593.57
Operation type = floating point
Verification = UNSUCCESSFUL
Version = 3.4.2
Compile date = 17 Mar 2023
Compile options:
FC = flang-new
FLINK = $(FC)
F_LIB = (none)
F_INC = (none)
FFLAGS = -O3 -fopenmp
FLINKFLAGS = $(FFLAGS)
RAND = randi8
```
I have not identified the root cause yet.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs