Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yaoyuping
nnDetection
Commits
470ef323
Commit
470ef323
authored
Jul 05, 2021
by
mibaumgartner
Browse files
improved env collection
parent
29cecb9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
scripts/utils.py
scripts/utils.py
+13
-2
No files found.
scripts/utils.py
View file @
470ef323
...
...
@@ -184,21 +184,32 @@ def env():
import
os
import
torch
import
sys
print
(
f
"PyTorch Version:
{
torch
.
version
}
"
)
print
(
f
"----- PyTorch Information -----"
)
print
(
f
"PyTorch Version:
{
torch
.
version
.
__version__
}
"
)
print
(
f
"PyTorch Debug:
{
torch
.
version
.
debug
}
"
)
print
(
f
"PyTorch CUDA:
{
torch
.
version
.
cuda
}
"
)
print
(
f
"PyTorch Backend cudnn:
{
torch
.
backends
.
cudnn
.
version
()
}
"
)
print
(
f
"PyTorch CUDA Arch List:
{
torch
.
cuda
.
get_arch_list
()
}
"
)
print
(
f
"PyTorch Current Device Capability:
{
torch
.
cuda
.
get_device_capability
()
}
"
)
print
(
f
"PyTorch CUDA available:
{
torch
.
cuda
.
is_available
()
}
"
)
print
(
"
\n
"
)
print
(
f
"----- System Information -----"
)
stream
=
os
.
popen
(
'nvcc --version'
)
output
=
stream
.
read
()
print
(
f
"System NVCC:
{
output
}
"
)
print
(
f
"System Arch List:
{
os
.
getenv
(
'TORCH_CUDA_ARCH_LIST'
,
None
)
}
"
)
print
(
f
"System OMP_NUM_THREADS:
{
os
.
getenv
(
'OMP_NUM_THREADS'
,
None
)
}
"
)
print
(
f
"System CUDA_HOME is None:
{
os
.
getenv
(
'CUDA_HOME'
,
None
)
is
None
}
"
)
print
(
f
"System CPU Count:
{
os
.
cpu_count
()
}
"
)
print
(
f
"Python Version:
{
sys
.
version
}
"
)
print
(
"
\n
"
)
print
(
f
"----- nnDetection Information -----"
)
print
(
f
"det_num_threads
{
os
.
getenv
(
'det_num_threads'
,
None
)
}
"
)
print
(
f
"det_data is set
{
os
.
getenv
(
'det_data'
,
None
)
is
not
None
}
"
)
print
(
f
"det_models is set
{
os
.
getenv
(
'det_models'
,
None
)
is
not
None
}
"
)
print
(
"
\n
"
)
if
__name__
==
'__main__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment