Adding CUDA GPU support for Filter function#1988
Conversation
|
Noether won't run for forks. I can verify the tests myself tomorrow |
|
Ok, we need to fix t129, because your code is all correct but the test is not executing on the GPU. So, here's what has to happen. I'd insert this code block into your `InitVec That will pull the memory up to the device, which then will trigger the code you added during the test. While you're in there, can you update a small style fix? A block (or line) of variable declarations must always be followed by an empty line, per our style guide, so (We may need to add this fix to other vector tests, need to check) Lemmie know if you have questions about this explanation! |
Ok, I added that block at the end of the InitVector function, and I added a blank line after the variable declaration on line 16. Should I delete the equivalent block for memory syncing that appears between test cases 1 and 2? |
|
Yeah, go ahead and remove the one outside of the init function since it isn't helping us anymore |
|
ok, just pushed those changes to t129-vector.c |
Purpose: adding CUDA GPU functionality for the Filter function, which filters or clips a vector to a threshold value by setting vector components to 0.0 if their absolute value is less than
threshold.Closes: N/A
LLM/GenAI Disclosure: Google AI spotted a missing parenthesis and saved me a compile error.
Helped by: Jeremy L. Thompson is a human who offered a lot of kind and helpful support while I was working on this.
By submitting this PR, the author certifies to its contents as described by the Developer's Certificate of Origin.
Please follow the Contributing Guidelines for all PRs.