Skip to content
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

Refactor: Templatise Movemem() function #504

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Conversation

IvanaGyro
Copy link
Collaborator

This PR is a task listed in #500.

The Movemem_cpu() function has two versions of implementation. One is for integral types, the other is for the other types. Two versions may be combined into one. However, this PR only templatises them and doesn't dip into the implementations.

This PR doesn't break any test for both CPU and GPU.

Copy link

codecov bot commented Nov 9, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 39 lines in your changes missing coverage. Please review.

Project coverage is 16.75%. Comparing base (17a6edf) to head (83b07ca).
Report is 10 commits behind head on dev-master.

Files with missing lines Patch % Lines
src/backend/utils_internal_cpu/Movemem_cpu.cpp 43.33% 9 Missing and 8 partials ⚠️
src/backend/BoolStorage.cpp 0.00% 2 Missing ⚠️
src/backend/ComplexDoubleStorage.cpp 0.00% 1 Missing and 1 partial ⚠️
src/backend/ComplexFloatStorage.cpp 0.00% 2 Missing ⚠️
src/backend/DoubleStorage.cpp 0.00% 1 Missing and 1 partial ⚠️
src/backend/FloatStorage.cpp 0.00% 1 Missing and 1 partial ⚠️
src/backend/Int16Storage.cpp 0.00% 2 Missing ⚠️
src/backend/Int32Storage.cpp 0.00% 1 Missing and 1 partial ⚠️
src/backend/Int64Storage.cpp 0.00% 2 Missing ⚠️
src/backend/Uint16Storage.cpp 0.00% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@              Coverage Diff               @@
##           dev-master     #504      +/-   ##
==============================================
- Coverage       16.78%   16.75%   -0.03%     
==============================================
  Files             221      221              
  Lines           53173    52870     -303     
  Branches        19822    19707     -115     
==============================================
- Hits             8923     8859      -64     
+ Misses          39940    39715     -225     
+ Partials         4310     4296      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@IvanaGyro IvanaGyro marked this pull request as draft November 13, 2024 09:06
This is the preparation for refactoring the
`Storage` class.
@IvanaGyro IvanaGyro force-pushed the templatise_functions branch from 4026a23 to 83b07ca Compare November 13, 2024 14:35
@IvanaGyro IvanaGyro changed the base branch from dev-master to master November 14, 2024 08:10
@IvanaGyro IvanaGyro changed the base branch from master to dev-master November 14, 2024 08:10
@IvanaGyro IvanaGyro marked this pull request as ready for review November 14, 2024 08:11
@yingjerkao yingjerkao self-requested a review November 19, 2024 02:50
@IvanaGyro IvanaGyro merged commit 6ff4e31 into dev-master Nov 19, 2024
4 checks passed
@IvanaGyro IvanaGyro deleted the templatise_functions branch November 19, 2024 02:56
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.

3 participants