ComputeCanada / software-stack-config

8 stars 3 forks source link

Introduce cuda_driver_library_available(cuda_version_two_digits) #37

Closed bartoldeman closed 2 years ago

bartoldeman commented 2 years ago

This returns "none", "compat" or "native".

"native": If the system library is new enough "compat": If the compat libraries can be used via LD_LIBRARY_PATH (needs restricted and at least 10.2 driver) "none": Anything else: this CUDA can't be used

A check for "compat" can then be used in cudacore modules to load the cuda-compat module, if needed.

bartoldeman commented 2 years ago

See https://github.com/ComputeCanada/software-stack/issues/79

mboisson commented 2 years ago

Looks good other than I would expect some (different) version check for the compatibility libraries.

mboisson commented 2 years ago

LGTM