Skip to content

Instantly share code, notes, and snippets.

View ericspod's full-sized avatar

Eric Kerfoot ericspod

View GitHub Profile
@ericspod
ericspod / check_environment.py
Created April 21, 2025 15:13
Environment check script
#! /usr/bin/env python
"""
Script for checking various elements of the runtime environment and print a large amount of diagnostic information.
This is meant to be used for debugging environments used with MONAI, but doesn't directly need MONAI itself. It will
print information about the environment including trying to get installed packages, test PyTorch with CUDA, and then
have MONAI print its debugging information if no errors encountered. If MONAI is not installed this script should still
work and produce useful information.
"""
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.