Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion httomo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,15 @@ def _set_gpu_id(gpu_id: int):

cp.cuda.Device(gpu_id).use()
else:
log_once("CuPy is installed but the GPU device is inaccessible. Only CPU pipelines would work.")
log_once(
"CuPy is installed but the GPU device is inaccessible. Only CPU pipelines would work."
)

httomo.globals.gpu_id = gpu_id
except ImportError as e:
log_exception(f"CuPy is not installed {e}. Only CPU pipelines would work.")


def set_global_constants(
out_dir: Path,
intermediate_format: str,
Expand Down
Loading