mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
improve zluda operation test
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.path.append(os.getcwd())
|
||||
|
||||
from modules.zluda_installer import find, load
|
||||
load(find())
|
||||
|
||||
import torch
|
||||
print(f'Python with ZLUDA {sys.version}')
|
||||
print('Type "help", "copyright", "credits" or "license" for more information.')
|
||||
|
||||
while True:
|
||||
print('>>> ', end='')
|
||||
try:
|
||||
exec(input(), {
|
||||
'torch': torch,
|
||||
})
|
||||
except Exception as e:
|
||||
print(f'{e.__class__.__name__}: {e}')
|
||||
Reference in New Issue
Block a user