[Clang-tidy] fix warning in copy_to_sycl_buffer function#1422
Conversation
adapted the test
Summary of ChangesHello @Akos299, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request aims to clean up the codebase by addressing a Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request resolves a clang-tidy warning about a deprecated function by replacing it with a manual, host-side comparison. However, the change introduces a logic error in the test by using an if statement instead of assertions for size checks. This could cause tests to pass silently when they should fail. My review includes a comment to correct this logic.
|
/gemini review |
Workflow reportworkflow report corresponding to commit 53b7aea Pre-commit check reportPre-commit check: ✅ Test pipeline can run. Clang-tidy diff reportNo relevant changes found. You should now go back to your normal life and enjoy a hopefully sunny day while waiting for the review. Doxygen diff with
|
…de#1422) warning: 'equals<int>' is deprecated: Use equals(const sham::DeviceScheduler_ptr &, sham::DeviceBuffer<T> &, sham::DeviceBuffer<T> &, u32 ) instead. [clang-diagnostic-deprecated-declarations] 280 | return equals(q, buf1, buf2, buf1.size()); | ^ /__w/Shamrock/Shamrock/src/tests/shambackends/DeviceBufferTests.cpp:120:35: note: in instantiation of function template specialization 'shamalgs::primitives::equals<int>' requested here 120 | REQUIRE(shamalgs::primitives::equals(q, b1, b2)); | ^ /__w/Shamrock/Shamrock/src/shamalgs/include/shamalgs/primitives/equals.hpp:74:7: note: 'equals<int>' has been explicitly marked deprecated here 74 | [[deprecated( | ^ --------- Co-authored-by: David--Cléris Timothée <timothee.davidcleris@proton.me>
…de#1422) warning: 'equals<int>' is deprecated: Use equals(const sham::DeviceScheduler_ptr &, sham::DeviceBuffer<T> &, sham::DeviceBuffer<T> &, u32 ) instead. [clang-diagnostic-deprecated-declarations] 280 | return equals(q, buf1, buf2, buf1.size()); | ^ /__w/Shamrock/Shamrock/src/tests/shambackends/DeviceBufferTests.cpp:120:35: note: in instantiation of function template specialization 'shamalgs::primitives::equals<int>' requested here 120 | REQUIRE(shamalgs::primitives::equals(q, b1, b2)); | ^ /__w/Shamrock/Shamrock/src/shamalgs/include/shamalgs/primitives/equals.hpp:74:7: note: 'equals<int>' has been explicitly marked deprecated here 74 | [[deprecated( | ^ --------- Co-authored-by: David--Cléris Timothée <timothee.davidcleris@proton.me>
warning: 'equals' is deprecated: Use equals(const sham::DeviceScheduler_ptr &, sham::DeviceBuffer &, sham::DeviceBuffer &, u32 ) instead. [clang-diagnostic-deprecated-declarations]
280 | return equals(q, buf1, buf2, buf1.size());
| ^
/__w/Shamrock/Shamrock/src/tests/shambackends/DeviceBufferTests.cpp:120:35: note: in instantiation of function template specialization 'shamalgs::primitives::equals' requested here
120 | REQUIRE(shamalgs::primitives::equals(q, b1, b2));
| ^
/__w/Shamrock/Shamrock/src/shamalgs/include/shamalgs/primitives/equals.hpp:74:7: note: 'equals' has been explicitly marked deprecated here
74 | [[deprecated(
| ^