Skip to content

Commit

Permalink
Correct location of warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Sep 14, 2023
1 parent 7f2a94e commit 1f8e586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def build_extension(self, ext: CMakeExtension) -> None:
try:
subprocess.check_output('nvidia-smi')
cmake_args += ["-DCPU_ONLY=OFF"]
print("WARNING: No GPU Found. Building with CPU only mode.")
except Exception:
cmake_args += ["-DCPU_ONLY=ON"]
print("WARNING: No GPU Found. Building with CPU only mode.")

# Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level
# across all generators.
Expand Down

0 comments on commit 1f8e586

Please sign in to comment.