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

Kernel of Laplace Box #157

Merged
merged 9 commits into from
Apr 17, 2023
Merged

Conversation

CherifMZ
Copy link
Contributor

@CherifMZ CherifMZ commented Apr 3, 2023

No description provided.

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 82.60% and project coverage change: +0.06 🎉

Comparison is base (1cf46a9) 77.34% compared to head (76ba4a8) 77.40%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage   77.34%   77.40%   +0.06%     
==========================================
  Files         179      182       +3     
  Lines        8544     8623      +79     
==========================================
+ Hits         6608     6675      +67     
- Misses       1936     1948      +12     
Impacted Files Coverage Δ
clic/include/core/clesperanto.hpp 93.33% <ø> (ø)
tests/laplace_box_test.cpp 77.35% <75.00%> (ø)
clic/include/tier1/cleLaplaceBoxKernel.hpp 100.00% <100.00%> (ø)
clic/src/core/clesperanto.cpp 89.86% <100.00%> (+0.06%) ⬆️
clic/src/tier1/cleLaplaceBoxKernel.cpp 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@CherifMZ
Copy link
Contributor Author

CherifMZ commented Apr 3, 2023

Isn't the norm calculated in line 18 of the laplace_box kernel supposed to be (r.z + r.y + r.x) * 2 instead of (r.z + r.y + r.z) * 2 ?

@StRigaud
Copy link
Member

Laplace norm should be fixed now, see:

Tests shouldn't pass! Please, fix the tests so that it actually tests the laplace formula

@StRigaud StRigaud marked this pull request as draft April 11, 2023 09:57
@StRigaud StRigaud added kernel request New feature or request labels Apr 11, 2023
@CherifMZ
Copy link
Contributor Author

I have corrected the tests so that they can test the Laplace formula (they obviously still don't pass).
I have put the input values and the expected ones. I also added the CPU version in which, with the Laplace formula, the input is extended by filling in the values beyond the edges with the same constant value 0.

Comment on lines 10 to 14
std::string cl_header = {
#include "cle_laplace_box.h"
};
this->SetSource("laplace_box", cl_header);
}
Copy link
Member

Choose a reason for hiding this comment

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

Library was updated, this need to be changed as followed:

  • move the include outside the function, at the top of the file
  • replace cl_header by oclKernel::laplace_box

see: absolute kernel for example

Comment on lines 7 to 8
GIT_REPOSITORY https://github.com/CherifMZ/clij-opencl-kernels.git
GIT_TAG fix_laplace_box
Copy link
Member

Choose a reason for hiding this comment

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

Kernel is pushed to the clesperanto_kernel branch, you can update back the repository link and tag before final merge

@CherifMZ CherifMZ marked this pull request as ready for review April 17, 2023 11:30
@StRigaud StRigaud merged commit 46f590a into clEsperanto:master Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants