fortranspire.agent.cliΒΆ

Functions

main()

agent-pipeline β€” Master dispatcher

profile_file(filepath)

run_analyze()

agent-analyze β€” Loki-only static analysis, no LLM, SARIF/JSON/text.

run_doc()

agent-doc β€” LLM-driven Fortran documentation (inline + Sphinx site).

run_explain()

agent-explain β€” pre-flight cost + risk estimate (no LLM, no tokens).

run_format()

agent-format β€” fprettify-based Fortran source formatter.

run_port_batch()

agent-port-batch β€” parallel Fortran β†’ GPU port across many files.

run_profile()

agent-profile β€” Performance benchmarking (legacy alias).

run_translate()

agent-translate β€” Phase 2 : Fortran β†’ JAX (legacy alias).

run_translate_gpu()

agent-gpu β€” Phase 1 : Fortran β†’ Fortran GPU + Cython (legacy alias).

translate_file(filepath)

Phase 2 β€” pipeline JAX (legacy).

translate_file_gpu(filepath, *[, gpu_pragma])

Phase 1 β€” pipeline Fortran GPU + Cython.