Skip to content

Fix DPC++ deprecation warnings#1988

Open
upsj wants to merge 1 commit intodevelopfrom
fix_sycl_deprecations
Open

Fix DPC++ deprecation warnings#1988
upsj wants to merge 1 commit intodevelopfrom
fix_sycl_deprecations

Conversation

@upsj
Copy link
Copy Markdown
Member

@upsj upsj commented Mar 16, 2026

This has been bugging me for a long time - compiling the backend creates gigabytes of error messages. This fixes all the issues by replacing uninitialized_array uses with local_accessor directly (which is more idiomatic SYCL anyways) and translating to pointers directly if necessary.

@upsj upsj requested a review from yhmtsai March 16, 2026 20:07
@upsj upsj self-assigned this Mar 16, 2026
@upsj upsj added the 1:ST:ready-for-review This PR is ready for review label Mar 16, 2026
@ginkgo-bot ginkgo-bot added type:solver This is related to the solvers type:preconditioner This is related to the preconditioners type:matrix-format This is related to the Matrix formats type:factorization This is related to the Factorizations mod:dpcpp This is related to the DPC++ module. labels Mar 16, 2026
Base automatically changed from refactor_device_accessor to develop March 17, 2026 08:20
Copy link
Copy Markdown
Member

@yhmtsai yhmtsai left a comment

Choose a reason for hiding this comment

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

LGTM. mainly on the passing by value or reference on local_accessor

Comment on lines +167 to 168
}
#define GKO_BIND_SHFL(ShflOpName, ShflOp) \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
}
#define GKO_BIND_SHFL(ShflOpName, ShflOp) \
}
#define GKO_BIND_SHFL(ShflOpName, ShflOp) \

Comment on lines +94 to 95
ValueType* reduction_helper = &reduction_helper_array[0];
auto reduction_helper_real =
Copy link
Copy Markdown
Member

@yhmtsai yhmtsai Mar 17, 2026

Choose a reason for hiding this comment

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

Suggested change
ValueType* reduction_helper = &reduction_helper_array[0];
auto reduction_helper_real =
ValueType* reduction_helper = &reduction_helper_array[0];
auto __restrict__ reduction_helper_real =

@upsj
Copy link
Copy Markdown
Member Author

upsj commented Mar 18, 2026

@yhmtsai This doesn't work out of the box, since [=] captures by values and lambdas are const by default, i.e. captured variables are const, so these references need to be const.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1:ST:ready-for-review This PR is ready for review mod:dpcpp This is related to the DPC++ module. type:factorization This is related to the Factorizations type:matrix-format This is related to the Matrix formats type:preconditioner This is related to the preconditioners type:solver This is related to the solvers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants