Adding scorep build option#191
Conversation
|
Deployed test documentation to https://exasim-project.com/NeoFOAM/Build_PR_191 |
|
It doesn't work for me. |
| @@ -0,0 +1,19 @@ | |||
| # Check whether scorep is present and set flag | |||
There was a problem hiding this comment.
Needs a license header
| # Check whether scorep is present and set flag | |
| # SPDX-License-Identifier: Unlicense | |
| # | |
| # SPDX-FileCopyrightText: 2025 NeoFOAM authors | |
| # Check whether scorep is present and set flag |
|
Since Score-P is compiled without cuda support, can it profile NeoFOAM running on NVIDIA GPUs? |
|
It profiles the Kokkos functions, so indirectly the CUDA kernels. One could play around enabling CUDA in the scorep build and then setting the SCOREP_WRAPPER_INSTRUMENTER_FLAGS to --no-kokkos and --cuda and see if the produces valid profiling. I got cuMemcopy errors when Kokkos and CUDA were enabled. |
I think it is a first step and ok for me. Besides that, is the update of |
I think it snuck in at some point as a submoduel. Maybe we can .gitignore the src/NeoN directory and take out the submodule entirely? |
That would be my preference. But I guess @HenningScheufler would like to keep it. |
|
@HendriceH Did you manage to profile neoIcoFoam using the Score-P build provided in this PR? And the log file of neoIcoFoam ends with Score-P did generate some profiling data, but the simulation didn't get finalized properly with Score-P. |
|
@HendriceH Can you get any info about GPU activities from the profiling data generated by Score-P which is built via the CMake preset in this PR? |
add fixme workflow, see exasim-project/NeoFOAM#191
Added scorep profling preset with option to automatically build scorep via cmake.
Since the compiler wrapper scorep-g++ or it's clang variant are required for the configure of NeoFOAM, this needs to happen in a two step process.
cmake --preset instrumented, look for scorep existance, if not found exit the configuration after external project atcmake --build --preset instrumentedto compile scorepcmake --preset instrumentedagain and this time the new scorep is found and NeoFOAM configures normallycmake --build --preset instrumentedto compile NeoFOAM and dependenciesStatus update:
scorep-<timestap>should appear that can be visualised in cube