Open foxtran opened 11 months ago
@llvm/issue-subscribers-openmp
Author: None (foxtran)
This seems to be fixed with a recent version of flang-new
from main Github repo:
$ flang-new -fopenmp -lblas flang-issue-74202.f90
hakostra@kmt-trd2:~/tmp/flang-issues$ ./a.out
1.86s 29.83 32
59.47s 0.93 32
Tested with:
$ flang-new --version
flang-new version 20.0.0git (https://github.com/llvm/llvm-project.git 6c607cfb2c2d8acd2b92d7ed8106ab1e4fc0d79d)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/llvm/llvm-project/install/bin
@llvm/issue-subscribers-flang-runtime
Author: None (foxtran)
Having the following code (tests matrix multiplication speed in stupid way):
For current flang, it gives me the same number for CPU_TIME calls and for SYSTEM_CLOCK calls. Example output:
At the same time, GCC produces different timings:
Expected