[flang-commits] [flang] [flang][OpenMP] Enable delayed privatization for `omp parallel` by default (PR #90945)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Tue Jun 11 10:12:12 PDT 2024


luporl wrote:

> I'm having some trouble running it. For some reason cmake is not detecting the test cases. I'll try to investigate it, but maybe you have better luck with it.

`-DTEST_SUITE_FUJITSU_FORCE_UNSUPPORTED_PLATFORM=ON` was needed.

After that I got several `CMake cannot determine linker language for target` errors, because CMake doesn't recognize `.f03` and `.f08` as Fortran sources (`.f` and `.f90` works though).
I worked around that with:
```
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,7 @@ function(llvm_set_own_fortran_module_directory)
   get_directory_property(targets BUILDSYSTEM_TARGETS)
   foreach(target ${targets})
     set_target_properties(${target} PROPERTIES Fortran_MODULE_DIRECTORY "${target}.d")
+    set_target_properties(${target} PROPERTIES LINKER_LANGUAGE Fortran)
   endforeach()
 endfunction()

```

With that it was possible to build the tests, that are now running.

https://github.com/llvm/llvm-project/pull/90945


More information about the flang-commits mailing list