Spaces:
Build error
Build error
Commit
·
55b5608
1
Parent(s):
18d159f
updated to find .os file
Browse files
app.py
CHANGED
|
@@ -9,6 +9,27 @@ dataset_name = "timdettmers/openassistant-guanaco"
|
|
| 9 |
dataset = load_dataset(dataset_name, split="train")
|
| 10 |
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
|
|
|
| 9 |
dataset = load_dataset(dataset_name, split="train")
|
| 10 |
|
| 11 |
|
| 12 |
+
import os
|
| 13 |
+
|
| 14 |
+
ld_library_path = os.environ.get("LD_LIBRARY_PATH")
|
| 15 |
+
print(ld_library_path)
|
| 16 |
+
|
| 17 |
+
# The directory to search in
|
| 18 |
+
search_directory = '/usr/'
|
| 19 |
+
|
| 20 |
+
# The filename pattern to look for (wildcard * is used)
|
| 21 |
+
filename_pattern = 'libcuda.so.*'
|
| 22 |
+
|
| 23 |
+
# Initialize a list to store the paths of matching files
|
| 24 |
+
matching_files = []
|
| 25 |
+
|
| 26 |
+
# Walk through the directory and its subdirectories
|
| 27 |
+
for root, dirs, files in os.walk(search_directory):
|
| 28 |
+
for file in files:
|
| 29 |
+
if file.startswith('libcuda.so.'):
|
| 30 |
+
matching_files.append(os.path.join(root, file))
|
| 31 |
+
|
| 32 |
+
# Print the paths of matching files
|
| 33 |
+
for file in matching_files:
|
| 34 |
+
print(file)
|
| 35 |
|