mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
10 lines
160 B
Python
10 lines
160 B
Python
import ctypes
|
|
|
|
|
|
def is_libcublas_available() -> bool:
|
|
try:
|
|
ctypes.CDLL("libcublas.so")
|
|
return True
|
|
except OSError:
|
|
return False
|