Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Enable DAE explicitly for several tests #575

Merged
merged 2 commits into from
Nov 25, 2021

Conversation

AGindinson
Copy link

@AGindinson AGindinson commented Nov 19, 2021

Until DAE is enabled by default in the compiler driver, make sure that
it works properly when multiple native programs are created (specialization
constants, device code split).

Tests intel/llvm#4977.

Signed-off-by: Artem Gindinson [email protected]

Until DAE is enabled by default in the compiler driver, make sure that
it works properly with the specialization constant/kernel bundle APIs.

Tests intel/llvm#4977.

Signed-off-by: Artem Gindinson <[email protected]>
@AGindinson
Copy link
Author

While the non_native/ tests are seemingly passing even without the product changes (see test logs), I would still request that -fsycl-dead-args-optimization is passed explicitly, since the problem with DAE has arisen for AOT before; DAE is to be default-enabled anyway after intel/llvm#4977 goes in.

Signed-off-by: Artem Gindinson <[email protected]>
@AGindinson AGindinson changed the title [SYCL] Enable DAE explicitly for SpecConstants tests [SYCL] Enable DAE explicitly for several tests Nov 22, 2021
AGindinson pushed a commit to AGindinson/llvm that referenced this pull request Nov 22, 2021
Due to an unintentional copy of the RTDeviceBinaryImage object that
was happening in ProgramManager::build(), the NativePrograms map
was getting populated by an extra entry. No duplicating entry was
being created in the m_EliminatedKernelArgMasks, which made the
image-based lookup in ProgramManager::getEliminatedKernelArgMask()
exit early. The returned empty KernelArgMask led to errors during
kernel argument setting whenever several native programs were created
(e.g. for `kernel_bundle` or device code split use cases).

Tested in intel/llvm-test-suite#575.

Signed-off-by: Artem Gindinson <[email protected]>
Co-authored-by: Maksim Sabianin <[email protected]>
@AGindinson AGindinson marked this pull request as ready for review November 22, 2021 12:47
@AGindinson AGindinson requested a review from mdtoguchi November 22, 2021 12:47
@AGindinson
Copy link
Author

/verify with intel/llvm#4977

@AGindinson AGindinson requested a review from maksimsab November 22, 2021 12:51
@AGindinson
Copy link
Author

/verify with intel/llvm#4977

@AGindinson
Copy link
Author

CUDA compilation failures for reduction tests in Jenkins/llvm-test-suite do not seem to be related to either of my patches.

@AGindinson
Copy link
Author

@kbobrovs, could you please take a look?

bader pushed a commit to intel/llvm that referenced this pull request Nov 24, 2021
Due to an unintentional copy of the RTDeviceBinaryImage object that
was happening in ProgramManager::build(), the NativePrograms map
was getting populated by an extra entry. No duplicating entry was
being created in the m_EliminatedKernelArgMasks, which made the
image-based lookup in ProgramManager::getEliminatedKernelArgMask()
exit early. The returned empty KernelArgMask led to errors during
kernel argument setting whenever several native programs were created
(e.g. for `kernel_bundle` or device code split use cases).

Tested in intel/llvm-test-suite#575.

Signed-off-by: Artem Gindinson <[email protected]>
Co-authored-by: Maksim Sabianin <[email protected]>
Copy link

@kbobrovs kbobrovs left a comment

Choose a reason for hiding this comment

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

LGTM

@vladimirlaz vladimirlaz merged commit 94d1a49 into intel:intel Nov 25, 2021
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…#575)

Until DAE is enabled by default in the compiler driver, make sure that
it works properly with the specialization constant/kernel bundle APIs.

Extend onto device code split tests

Tests intel#4977.

Signed-off-by: Artem Gindinson <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants