Skip to content
Discussion options

You must be logged in to vote

Thanks to the input of @njroussel, I came up with the following function that checks if OptiX is available:

import ctypes

def is_optix_available() -> bool:
    """Check, if OptiX is available."""
    try:
        ctypes.cdll.LoadLibrary("libnvoptix.so.1")
    except OSError:
        return False

    return True

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@maxfrei750
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by maxfrei750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants