Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cpu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_backend_cpu
Commits
c109674c
Commit
c109674c
authored
1 month ago
by
Cyril Moineau
Browse files
Options
Downloads
Patches
Plain Diff
showCoreVersion now use fmt print instead of Log::info.
parent
f137622f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!174
0.6.1
,
!171
Minor fix
Pipeline
#72289
passed
1 month ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/aidge/utils/sys_info/CpuVersionInfo.hpp
+7
-7
7 additions, 7 deletions
include/aidge/utils/sys_info/CpuVersionInfo.hpp
with
7 additions
and
7 deletions
include/aidge/utils/sys_info/CpuVersionInfo.hpp
+
7
−
7
View file @
c109674c
#ifndef AIDGE_UTILS_SYS_INFO_CPU_VERSION_INFO_H
#ifndef AIDGE_UTILS_SYS_INFO_CPU_VERSION_INFO_H
#define AIDGE_UTILS_SYS_INFO_CPU_VERSION_INFO_H
#define AIDGE_UTILS_SYS_INFO_CPU_VERSION_INFO_H
#include
"aidge/utils/Log.hpp"
#include
<fmt/core.h>
#include
"aidge/backend/cpu_version.h"
#include
"aidge/backend/cpu_version.h"
namespace
Aidge
{
namespace
Aidge
{
...
@@ -15,22 +15,22 @@ constexpr inline const char * getBackendCPUGitHash(){
...
@@ -15,22 +15,22 @@ constexpr inline const char * getBackendCPUGitHash(){
}
}
void
showBackendCpuVersion
()
{
void
showBackendCpuVersion
()
{
Log
::
info
(
"Aidge backend CPU: {} ({}), {} {}"
,
getBackendCPUProjectVersion
(),
getBackendCPUGitHash
(),
__DATE__
,
__TIME__
);
fmt
::
println
(
"Aidge backend CPU: {} ({}), {} {}"
,
getBackendCPUProjectVersion
(),
getBackendCPUGitHash
(),
__DATE__
,
__TIME__
);
// Compiler version
// Compiler version
#if defined(__clang__)
#if defined(__clang__)
/* Clang/LLVM. ---------------------------------------------- */
/* Clang/LLVM. ---------------------------------------------- */
Log
::
info
(
"Clang/LLVM compiler version: {}.{}.{}
\n
"
,
__clang_major__
,
__clang_minor__
,
__clang_patchlevel__
);
fmt
::
println
(
"Clang/LLVM compiler version: {}.{}.{}
\n
"
,
__clang_major__
,
__clang_minor__
,
__clang_patchlevel__
);
#elif defined(__ICC) || defined(__INTEL_COMPILER)
#elif defined(__ICC) || defined(__INTEL_COMPILER)
/* Intel ICC/ICPC. ------------------------------------------ */
/* Intel ICC/ICPC. ------------------------------------------ */
Log
::
info
(
"Intel ICC/ICPC compiler version: {}
\n
"
,
__INTEL_COMPILER
);
fmt
::
println
(
"Intel ICC/ICPC compiler version: {}
\n
"
,
__INTEL_COMPILER
);
#elif defined(__GNUC__) || defined(__GNUG__)
#elif defined(__GNUC__) || defined(__GNUG__)
/* GNU GCC/G++. --------------------------------------------- */
/* GNU GCC/G++. --------------------------------------------- */
Log
::
info
(
"GNU GCC/G++ compiler version: {}.{}.{}"
,
__GNUC__
,
__GNUC_MINOR__
,
__GNUC_PATCHLEVEL__
);
fmt
::
println
(
"GNU GCC/G++ compiler version: {}.{}.{}"
,
__GNUC__
,
__GNUC_MINOR__
,
__GNUC_PATCHLEVEL__
);
#elif defined(_MSC_VER)
#elif defined(_MSC_VER)
/* Microsoft Visual Studio. --------------------------------- */
/* Microsoft Visual Studio. --------------------------------- */
Log
::
info
(
"Microsoft Visual Studio compiler version: {}
\n
"
,
_MSC_VER
);
fmt
::
println
(
"Microsoft Visual Studio compiler version: {}
\n
"
,
_MSC_VER
);
#else
#else
Log
::
info
(
"Unknown compiler
\n
"
);
fmt
::
println
(
"Unknown compiler
\n
"
);
#endif
#endif
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment