Skip to content

[Driver][SYCL] Improve dependency file behaviors for -fintelfpga #1186

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 13 commits into from
Mar 5, 2020

Conversation

mdtoguchi
Copy link
Contributor

When compiling AOT for FPGA dependency files are generated that are used
by the aoc compilation. Single step compilation is seamless as the dependency
file is generated then immediately used. When compiling to object, keeping
track of the dependency file is not so intuitive.

To alleviate problems of not being able to find the dependency file, the
original dependency file is bundled up with the destination fat object and
when used is unbundled and passed to the aoc compilation.

Signed-off-by: Michael D Toguchi michael.d.toguchi@intel.com

When compiling AOT for FPGA dependency files are generated that are used
by the aoc compilation.  Single step compilation is seamless as the dependency
file is generated then immediately used.  When compiling to object, keeping
track of the dependency file is not so intuitive.

To alleviate problems of not being able to find the dependency file, the
original dependency file is bundled up with the destination fat object and
when used is unbundled and passed to the aoc compilation.

Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Use new FPGA dependency type which is used for unbundling of the FPGA
dependency from an object.

Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Use TY_FPGA_Dependencies for generated file from unbundle
Clean up comments and add clang_cl specific test for dep unbundle

Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
@mdtoguchi
Copy link
Contributor Author

@bader, are clang-format failures required to be fixed? This test must be new, as I didn't hit it with my previous changes and the bits are the same.

@bader
Copy link
Contributor

bader commented Feb 27, 2020

@bader, are clang-format failures required to be fixed? This test must be new, as I didn't hit it with my previous changes and the bits are the same.

I think so. I've recently added this check to align with LLVM community, which tries to keep consistent coding style across the code base by using similar pre-commit check.
You can fix this failure by applying the patch attached to the job artifacts.
https://github.com/intel/llvm/suites/481642712/artifacts/2232617

Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Generating dependency files is not a Windows thing, so the generation of the
file was based on the -o option.  When using /Fo, the output file name was
not being honored.

Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
AGindinson
AGindinson previously approved these changes Mar 4, 2020
Signed-off-by: Michael D Toguchi <michael.d.toguchi@intel.com>
@bader bader merged commit 7b58b01 into intel:sycl Mar 5, 2020
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.

4 participants