Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MTIP
spinifel
Commits
4f89949f
Commit
4f89949f
authored
Feb 22, 2022
by
Hsing-Yin Chang
Browse files
initialize ctx as None
parent
39d8d75e
Changes
1
Hide whitespace changes
Inline
Side-by-side
spinifel/context.py
View file @
4f89949f
...
...
@@ -51,7 +51,7 @@ class SpinifelContexts(metaclass=Singleton):
self
.
_mpi_initialized
=
False
self
.
_dev_id
=
0
self
.
_cuda_initialized
=
False
self
.
ctx
=
None
def
init_mpi
(
self
):
"""
...
...
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