Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cuda
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_cuda
Commits
ccaa0293
Commit
ccaa0293
authored
2 weeks ago
by
Cyril Moineau
Browse files
Options
Downloads
Patches
Plain Diff
showCudaVersion now use fmt print instead of Log::info.
parent
d7b3dd6f
No related branches found
No related tags found
2 merge requests
!79
0.6.1
,
!77
Minor fix
Pipeline
#72883
passed
1 week ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
1
Pipelines
12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/aidge/utils/sys_info/CudaVersionInfo.hpp
+8
-8
8 additions, 8 deletions
include/aidge/utils/sys_info/CudaVersionInfo.hpp
with
8 additions
and
8 deletions
include/aidge/utils/sys_info/CudaVersionInfo.hpp
+
8
−
8
View file @
ccaa0293
#ifndef AIDGE_UTILS_SYS_INFO_CUDA_VERSION_INFO_H
#define AIDGE_UTILS_SYS_INFO_CUDA_VERSION_INFO_H
#include
<fmt/core.h>
#include
"aidge/backend/cuda/utils/CudaUtils.hpp"
// CHECK_CUDA_STATUS
#include
"aidge/utils/Log.hpp"
#include
"aidge/backend/cuda_version.h"
namespace
Aidge
{
...
...
@@ -15,9 +15,9 @@ constexpr inline const char * getBackendCudaGitHash(){
}
void
showBackendCudaProjectVersion
()
{
Log
::
info
(
"Aidge backend CUDA: {} ({}), {} {}"
,
getBackendCudaProjectVersion
(),
getBackendCudaGitHash
(),
__DATE__
,
__TIME__
);
Log
::
info
(
"CUDA compiler version: {}"
,
CUDA_COMPILER_VERSION
);
Log
::
info
(
"CuDNN version: {}.{}.{}
\n
"
,
CUDNN_MAJOR
,
CUDNN_MINOR
,
fmt
::
println
(
"Aidge backend CUDA: {} ({}), {} {}"
,
getBackendCudaProjectVersion
(),
getBackendCudaGitHash
(),
__DATE__
,
__TIME__
);
fmt
::
println
(
"CUDA compiler version: {}"
,
CUDA_COMPILER_VERSION
);
fmt
::
println
(
"CuDNN version: {}.{}.{}
\n
"
,
CUDNN_MAJOR
,
CUDNN_MINOR
,
CUDNN_PATCHLEVEL
);
int
deviceCount
=
0
;
...
...
@@ -26,7 +26,7 @@ void showBackendCudaProjectVersion() {
if
(
deviceCount
==
0
)
{
Log
::
warn
(
"There are no available device(s) that support CUDA"
);
}
else
{
Log
::
info
(
"Detected {} CUDA Capable device(s)"
,
deviceCount
);
fmt
::
println
(
"Detected {} CUDA Capable device(s)"
,
deviceCount
);
}
for
(
int
dev
=
0
;
dev
<
deviceCount
;
++
dev
)
{
...
...
@@ -34,17 +34,17 @@ void showBackendCudaProjectVersion() {
cudaDeviceProp
deviceProp
;
cudaGetDeviceProperties
(
&
deviceProp
,
dev
);
Log
::
info
(
"
\n
Device #{}:
\"
{}
\"
"
,
dev
,
deviceProp
.
name
);
fmt
::
println
(
"
\n
Device #{}:
\"
{}
\"
"
,
dev
,
deviceProp
.
name
);
int
driverVersion
=
0
;
int
runtimeVersion
=
0
;
cudaDriverGetVersion
(
&
driverVersion
);
cudaRuntimeGetVersion
(
&
runtimeVersion
);
Log
::
info
(
fmt
::
println
(
"
\t
CUDA Driver Version / Runtime Version: {}.{} / {}.{}"
,
(
driverVersion
/
1000
),
((
driverVersion
%
100
)
/
10
),
(
runtimeVersion
/
1000
),
((
runtimeVersion
%
100
)
/
10
));
Log
::
info
(
"
\t
CUDA Capability Major/Minor version number: {}.{}"
,
fmt
::
println
(
"
\t
CUDA Capability Major/Minor version number: {}.{}"
,
deviceProp
.
major
,
deviceProp
.
minor
);
}
}
...
...
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