Skip to content

[Driver][SYCL][FPGA] Restrict -O0 for FPGA with hardware #3966

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
Jun 23, 2021

Conversation

mdtoguchi
Copy link
Contributor

When using -O0 on the command with FPGA -Xshardware, we do not want to
pass along -O0 to the device compilation. We do this by stripping out
the option for the device compilation under these conditions.

When using -O0 on the command with FPGA -Xshardware, we do not want to
pass along -O0 to the device compilation.  We do this by stripping out
the option for the device compilation under these conditions.
@mdtoguchi mdtoguchi requested a review from AGindinson as a code owner June 21, 2021 22:14
@mlychkov
Copy link
Contributor

When using -O0 on the command with FPGA -Xshardware, we do not want to
pass along -O0 to the device compilation. We do this by stripping out
the option for the device compilation under these conditions.

I suppose that with -Xssimulation -O0 is stripped as well?

Copy link
Contributor

@AGindinson AGindinson left a comment

Choose a reason for hiding this comment

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

+1 to @mlychkov's concern; LGTM otherwise.

@mdtoguchi
Copy link
Contributor Author

I suppose that with -Xssimulation -O0 is stripped as well?

Yes, that is correct - and the desired behavior.

@bader bader merged commit 7d94edf into intel:sycl Jun 23, 2021
alexbatashev added a commit to alexbatashev/llvm that referenced this pull request Jun 24, 2021
* upstream/sycl: (489 commits)
  [SYCL][NFC] Lower overhead of making plugin calls (intel#3982)
  [SYCL][NFC] Use default macro initialization where applicable (intel#3979)
  [SYCL] Enable SPV_INTEL_fpga_invocation_pipelining_attributes extension (intel#3864)
  [SYCL] Disable reassociate pass to reduce register pressure (intel#3615)
  [Driver][SYCL][FPGA] Restrict -O0 for FPGA with hardware (intel#3966)
  [SYCL][NFC] Fix warnings coming out of SYCL headers. (intel#3978)
  [SYCL] Fix bugs with recursion in SYCL kernel (intel#3958)
  [SYCL][LevelZero] Add support to detect host->device and device->host transfers for USM (intel#3975)
  [SYCL] Enable native FP atomics by default (intel#3869)
  [sycl-post-link] Avoid copying from nullptr (intel#3963)
  [SYCL-PTX] Add warp-reduce path in sub-group reduce (intel#3949)
  [BuildBot] Uplift CPU/FPGAEMU RT version for CI Process (intel#3946)
  Fix handling of complex constant expressions
  Handle OpSpecConstantOp with CompositeExtract and CompositeInsert
  Handle OpSpecConstantOp with VectorShuffle
  [FuncSpec] Don't specialise functions with NoDuplicate instructions.
  [mlir][linalg] Support low padding in subtensor(pad_tensor) lowering
  [gn build] Port 208332d
  [AMDGPU] Add Optimize VGPR LiveRange Pass.
  [mlir][Linalg] NFC - Drop unused variable definition.
  ...
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