Skip to content

oneAPI backend update: report #1222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hls4ml/backends/oneapi/oneapi_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from hls4ml.model.layers import GRU, LSTM, Activation, Conv1D, Conv2D, Dense, Embedding, Layer, SimpleRNN, Softmax
from hls4ml.model.optimizer import get_backend_passes, layer_optimizer
from hls4ml.model.types import FixedPrecisionType, IntegerPrecisionType, NamedType
from hls4ml.report import parse_oneapi_report
from hls4ml.utils import attribute_descriptions as descriptions

# from hls4ml.report import parse_oneapi_report
Expand Down Expand Up @@ -207,6 +208,8 @@ def build(self, model, build_type='fpga_emu', run=False):
executable = builddir / f'{model.config.get_project_name()}.{build_type}'
subprocess.run(f'{str(executable)}', shell=True, cwd=builddir, check=True)

return parse_oneapi_report(model.config.get_output_dir())

@layer_optimizer(Layer)
def init_base_layer(self, layer):
reuse_factor = layer.model.config.get_reuse_factor(layer)
Expand Down
2 changes: 2 additions & 0 deletions hls4ml/report/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from hls4ml.report.catapult_report import parse_catapult_report # noqa: F401
from hls4ml.report.catapult_report import qofr # noqa: F401
from hls4ml.report.catapult_report import read_catapult_report # noqa: F401
from hls4ml.report.oneapi_report import parse_oneapi_report # noqa: F401
from hls4ml.report.oneapi_report import print_oneapi_report # noqa: F401
from hls4ml.report.quartus_report import parse_quartus_report # noqa: F401
from hls4ml.report.quartus_report import read_quartus_report # noqa: F401
from hls4ml.report.vivado_report import parse_vivado_report # noqa: F401
Expand Down
Loading
Loading