Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itischler
lbmpy
Commits
7f1ab7e5
Commit
7f1ab7e5
authored
Jan 23, 2020
by
Michael Kuron
Browse files
more test fix
parent
e8319d7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7f1ab7e5
...
...
@@ -79,6 +79,7 @@ ubuntu:
-
pytest-3 -v -m "not longrun"
tags
:
-
docker
-
cuda
minimal-conda
:
stage
:
test
...
...
lbmpy/max_domain_size_info.py
View file @
7f1ab7e5
...
...
@@ -107,9 +107,11 @@ def memory_sizes_of_current_machine():
if
get_cpu_info
:
cpu_info
=
get_cpu_info
()
result
.
update
({
'L1'
:
cpu_info
[
'l1_data_cache_size'
],
'L2'
:
cpu_info
[
'l2_cache_size'
],
'L3'
:
cpu_info
[
'l3_cache_size'
]})
if
'l1_data_cache_size'
in
cpu_info
:
result
[
'L1'
]
=
cpu_info
[
'l1_data_cache_size'
]
result
[
'L2'
]
=
cpu_info
[
'l2_cache_size'
]
if
'l3_cache_size'
in
cpu_info
:
result
[
'L3'
]
=
cpu_info
[
'l3_cache_size'
]
if
device
:
size
=
device
.
total_memory
()
/
(
1024
*
1024
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment