Skip to content

Commit

Permalink
Merge branch 'devel' into dlkf
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghan-iapcm authored Mar 11, 2024
2 parents 1c65854 + 804848a commit a5583c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/find_tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def find_tensorflow() -> Tuple[Optional[str], List[str]]:
# TypeError if submodule_search_locations are None
# IndexError if submodule_search_locations is an empty list
except (AttributeError, TypeError, IndexError):
tf_version = ""
if os.environ.get("CIBUILDWHEEL", "0") == "1":
cuda_version = os.environ.get("CUDA_VERSION", "12.2")
if cuda_version == "" or cuda_version in SpecifierSet(">=12,<13"):
Expand All @@ -99,9 +100,10 @@ def find_tensorflow() -> Tuple[Optional[str], List[str]]:
"tensorflow-cpu>=2.5.0rc0,<2.15; platform_machine=='x86_64' and platform_system == 'Linux'",
]
)
tf_version = "2.14.1"
else:
raise RuntimeError("Unsupported CUDA version")
requires.extend(get_tf_requirement()["cpu"])
requires.extend(get_tf_requirement(tf_version)["cpu"])
# setuptools will re-find tensorflow after installing setup_requires
tf_install_dir = None
return tf_install_dir, requires
Expand Down

0 comments on commit a5583c6

Please sign in to comment.