Skip to content

[Driver][SYCL][FPGA] Improve help output for aoc with -fsycl-help #2446

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 1 commit into from
Sep 12, 2020

Conversation

mdtoguchi
Copy link
Contributor

aoc provides a way to emit SYCL FPGA specific options with the -help
via the -sycl option. Augment the the help output behaviors to
allow for an additional option that can be used with the tools.

aoc provides a way to emit SYCL FPGA specific options with the -help
via the -sycl option.  Augment the the help output behaviors to
allow for an additional option that can be used with the tools.
Comment on lines +1829 to +1831
llvm::errs() << "\"" << ExecPath << "\" \"" << ToolArgs[1] << "\"";
if (!ToolArgs[2].empty())
llvm::errs() << " \"" << ToolArgs[2] << "\"";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, a while loop would've looked cleaner than a hardcoded [2]. But I see why one can prefer the code this way (to avoid extra complexity in an unlikely-to-change helper function).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could go either way. It was just a single argument used in a very specific output function with know limited array args.

@bader bader merged commit dc8a059 into intel:sycl Sep 12, 2020
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
[L0 v2] add missing catches to usm functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants