Skip to content

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

Merged
bader merged 1 commit into
intel:syclfrom
mdtoguchi:disable-O0-fpga-hardware
Jun 23, 2021
Merged

[Driver][SYCL][FPGA] Restrict -O0 for FPGA with hardware#3966
bader merged 1 commit into
intel:syclfrom
mdtoguchi:disable-O0-fpga-hardware

Conversation

@mdtoguchi

Copy link
Copy Markdown
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
Copy Markdown
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?

@AGindinson AGindinson left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread clang/test/Driver/sycl-offload-intelfpga.cpp
@mdtoguchi

Copy link
Copy Markdown
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