Skip to content

[SYCL] Fix 5_GPU_optimized sample #2686

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

againull
Copy link

Existing Sample Changes

Description

Currently there is an out-of-bound access in last iteration of the main loop in iso3dfd kernel (5_GPU_optimized sample):


prev_acc is accessed out-of-bounds in the last iteration.
To avoid this, don't prepare unnecessary data for the next iteration if the current iteration is the last one.

Fixes Issue#
CMPLRLLVM-69572

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Verified on
Intel(R) Data Center GPU Max 1550
with gpu driver 25.05.32567.17
OS: Ubuntu 22.04

intel/llvm compiler: intel/llvm@e8c8555

Commands:
clang++ -fsycl 5_GPU_optimized.cpp -o 5_GPU_optimized
./5_GPU_optimized 256 256 256 100 256 16 16 verify

Hangs without the fix, passes verification with the fix.

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.

1 participant