mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-07 19:50:09 +01:00
fail-safed _build_cache.py
This commit is contained in:
@@ -4,7 +4,14 @@ import os.path
|
||||
import sys
|
||||
sys.path[0:0] = ['../..']
|
||||
|
||||
from osaca.semantics.hw_model import MachineModel
|
||||
failed = False
|
||||
try:
|
||||
from osaca.semantics.hw_model import MachineModel
|
||||
except ModuleNotFoundError:
|
||||
print("Unable to import MachineModel, probably some dependency is not yet installed. SKIPPING. "
|
||||
"First run of OSACA may take a while to build caches, subsequent runs will be as fast as "
|
||||
"ever.")
|
||||
sys.exit()
|
||||
|
||||
print('Building cache: ', end='')
|
||||
sys.stdout.flush()
|
||||
|
||||
Reference in New Issue
Block a user