// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include std::string jfjoch_git_sha1(); std::string jfjoch_git_date(); std::string jfjoch_version(); // CMAKE_CXX_FLAGS of the build - empty on a plain configure. Recorded because two builds of one // commit can differ by flags alone, and -march moves the CPU-bound results. std::string jfjoch_build_cxx_flags(); // The C++ compiler (CMake's id and version), and the CUDA toolkit version - empty in a build without CUDA. std::string jfjoch_build_compiler(); std::string jfjoch_build_cuda(); // One line for a program's start: compiler, CUDA (where `with_cuda`: a program that can use it) and flags. std::string jfjoch_build_info(bool with_cuda);