NeuroCC_0.4.0 / tools /ast_native_phase_d5_final_packaged.py
chrisuser's picture
Upload 389 files
b3c3fe4 verified
Raw History Blame Contribute Delete
486 Bytes
"""Run the bundled experimental D5-Final driver."""
import os
from pathlib import Path
import runpy
import sys
ROOT = Path(__file__).resolve().parents[1]
RUNTIME = ROOT / 'neuro_compiler' / 'runtime'
sys.path.insert(0, str(RUNTIME))
os.environ['NEUROCC_RELEASE'] = str(RUNTIME / 'release')
os.environ['NEUROCC_SSA_MEMORY'] = str(RUNTIME / 'runs' / 'hyperopt_h1_h3' / 'ssa_memory.pt')
os.chdir(RUNTIME)
runpy.run_path(str(RUNTIME / 'ast_native_phase_d5_final.py'), run_name='__main__')