llvm icon indicating copy to clipboard operation
llvm copied to clipboard

info::device::atomic64 is deprecated

Open dklochkov-emb opened this issue 1 year ago • 3 comments

  1. A separate .def file was created for deprecated features that are not part of SYCL 2020 spec
  2. info::device::atomic64 was deprecated
  3. Test for info::device::atomic64 deprecated was added into separate file due to -Wno-deprecated-declarations flag in warnings.cpp tests file.

dklochkov-emb avatar Oct 17 '24 12:10 dklochkov-emb

Test for info::device::atomic64 deprecated was added into separate file due to -Wno-deprecated-declarations flag in warnings.cpp tests file.

Just curious - did you try warnings.cpp actually? Not sure, but I think I tried it sometime ago and there was no need for a separate test.

UPD. I've likely tried another test - test/warnings/sycl_2020_deprecations.cpp. You can try updating it instead of creating a separate one. I'd also suggest to update our code, so we don't use this deprecated query.

KornevNikita avatar Oct 17 '24 17:10 KornevNikita

Just curious - did you try warnings.cpp actually? Not sure, but I think I tried it sometime ago and there was no need for a separate test.

warnings.cpp is focused on sycl.hpp being warning-free on its own, it is not for checking that right diagnostics are emitted

UPD. I've likely tried another test - test/warnings/sycl_2020_deprecations.cpp. You can try updating it instead of creating a separate one.

That is not a SYCL 2020 deprecation, that deprecation does not depend on the language version, so I think that a separate test is better.

I'd also suggest to update our code, so we don't use this deprecated query.

That's a good point! warnings.cpp should be updated to fail unless this is fixed to ensure that we also cover this use case. I suppose that not all code paths may produce warnings, simply because we don't instantiate those templates in the test.

AlexeySachkov avatar Oct 17 '24 18:10 AlexeySachkov

I'd also suggest to update our code, so we don't use this deprecated query.

That's a good point! warnings.cpp should be updated to fail unless this is fixed to ensure that we also cover this use case. I suppose that not all code paths may produce warnings, simply because we don't instantiate those templates in the test.

I've realized the the call we perform happens within the library, so it doesn't affect public headers and can't be checked by warnings.cpp. I agree with Nikita that we should address it (most likely our -Werror build in post-commit will fail otherwise), but please disregard the comment about updating warnings.cpp

AlexeySachkov avatar Oct 18 '24 12:10 AlexeySachkov

@cperkinsintel, @intel/llvm-reviewers-runtime, could you please take a look?

AlexeySachkov avatar Oct 23 '24 10:10 AlexeySachkov