File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 15
15
import os
16
16
from importlib .metadata import version , PackageNotFoundError
17
17
18
- # import current version
19
- from ._version import __version__
20
-
21
- # To crash on LIBOMP error set this to False
22
- IGNORE_LIBOMP_ERROR = True
23
-
24
- # ------------------------------------------------------------
25
- #
26
- # Handle omplib error
27
- if IGNORE_LIBOMP_ERROR :
28
- if sys .platform == 'darwin' :
29
- os .environ ['KMP_DUPLICATE_LIB_OK' ]= 'True'
30
-
31
18
# ------------------------------------------------------------
32
19
# READTHEDOCS thanks to Alex Holehouse!!!!
33
20
40
27
41
28
# ------------------------------------------------------------
42
29
30
+
31
+ # To crash on LIBOMP error set this to False
32
+ IGNORE_LIBOMP_ERROR = True
33
+
34
+ # ------------------------------------------------------------
35
+ #
36
+ # Handle omplib error
37
+ if IGNORE_LIBOMP_ERROR :
38
+ if sys .platform == 'darwin' :
39
+ os .environ ['KMP_DUPLICATE_LIB_OK' ]= 'True'
40
+
41
+
43
42
# Standardized function to check performance
44
43
def print_performance (seq_len = 500 , num_seqs = 2000 , variable_length = False ,
45
44
version = DEFAULT_NETWORK , disable_batch = False ,
You can’t perform that action at this time.
0 commit comments