Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Nov 12, 2024
1 parent 9f90408 commit 1d3e428
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/kvikio/kvikio/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def compat_mode_reset(compatmode: kvikio.CompatMode) -> None:
Parameters
----------
compatmode : bool or str
bool: Set to True to enable and False to disable compatibility mode
str: Set to "ON" to enable and "OFF" to disable compatibility mode, or "AUTO"
to let KvikIO determine (try "OFF", and if failed, fall back to "ON")
compatmode : kvikio.CompatMode
Set to kvikio.CompatMode.ON to enable and kvikio.CompatMode.OFF to disable
compatibility mode, or kvikio.CompatMode.AUTO to let KvikIO determine: try
OFF first, and upon failure, fall back to ON.
"""
kvikio._lib.defaults.compat_mode_reset(compatmode)

Expand All @@ -52,10 +52,10 @@ def set_compat_mode(compatmode: kvikio.CompatMode):
Parameters
----------
compatmode : bool or str
bool: Set to True to enable and False to disable compatibility mode
str: Set to "ON" to enable and "OFF" to disable compatibility mode, or "AUTO"
to let KvikIO determine (try "OFF", and if failed, fall back to "ON")
compatmode : kvikio.CompatMode
Set to kvikio.CompatMode.ON to enable and kvikio.CompatMode.OFF to disable
compatibility mode, or kvikio.CompatMode.AUTO to let KvikIO determine: try
OFF first, and upon failure, fall back to ON.
"""
num_threads_reset(get_num_threads()) # Sync all running threads
old_value = compat_mode()
Expand Down

0 comments on commit 1d3e428

Please sign in to comment.