calibration_tools_v1.0/lidar_driver/include/open3d/utility/CompilerInfo.h
2025-02-20 10:45:17 +08:00

42 lines
1.2 KiB
C++

// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// Copyright (c) 2018-2023 www.open3d.org
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
#pragma once
#include <memory>
#include <string>
namespace open3d {
namespace utility {
/// \brief Compiler information.
class CompilerInfo {
// This does not need to be a class. It is a class just for the sake of
// consistency with CPUInfo.
public:
static CompilerInfo& GetInstance();
~CompilerInfo() = default;
CompilerInfo(const CompilerInfo&) = delete;
void operator=(const CompilerInfo&) = delete;
std::string CXXStandard() const;
std::string CXXCompilerId() const;
std::string CXXCompilerVersion() const;
std::string CUDACompilerId() const;
std::string CUDACompilerVersion() const;
void Print() const;
private:
CompilerInfo();
};
} // namespace utility
} // namespace open3d