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

1D Convolution example #2220

Merged

Conversation

mehmetyusufoglu
Copy link
Contributor

This pull request consisting 1D convolution implementation is an exercise for a 2D or 3D convolution example.

@SimeonEhrig
Copy link
Member

@mehmetyusufoglu A hint, you can use a draft instead a pull request, if you nobody should merge to early. There is option on the right corner to covert the PR to a draft.

image

@mehmetyusufoglu mehmetyusufoglu marked this pull request as draft January 16, 2024 12:17
@mehmetyusufoglu mehmetyusufoglu force-pushed the convolutionExample branch 4 times, most recently from 34039a1 to afb11ce Compare January 17, 2024 11:59
@mehmetyusufoglu mehmetyusufoglu changed the title [Not to merge] 1D Convolution example 1D Convolution example Jan 17, 2024
@mehmetyusufoglu mehmetyusufoglu marked this pull request as ready for review January 17, 2024 12:03
Copy link
Member

@bernhardmgruber bernhardmgruber left a comment

Choose a reason for hiding this comment

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

Here is some feedback for a start.

example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
@mehmetyusufoglu mehmetyusufoglu force-pushed the convolutionExample branch 2 times, most recently from acaaf9e to c7665f3 Compare January 22, 2024 14:24
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
@mehmetyusufoglu mehmetyusufoglu force-pushed the convolutionExample branch 3 times, most recently from 39546d8 to a531e69 Compare January 22, 2024 15:16
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Show resolved Hide resolved
nativeOutputDeviceMemory,
inputSize,
filterSize);
alpaka::wait(queue);
Copy link
Member

Choose a reason for hiding this comment

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

no wait is required because the next operation is in the same queue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok I added wait after the second operation. Thanks a lot.

@mehmetyusufoglu mehmetyusufoglu force-pushed the convolutionExample branch 3 times, most recently from 6025f69 to 1920952 Compare January 23, 2024 23:56
Copy link
Member

@bernhardmgruber bernhardmgruber left a comment

Choose a reason for hiding this comment

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

Last piece of feedback. The rest looks good.

Please squash all commits as well!

example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Outdated Show resolved Hide resolved
example/convolution1D/src/convolution1D.cpp Show resolved Hide resolved
@mehmetyusufoglu mehmetyusufoglu force-pushed the convolutionExample branch 2 times, most recently from d844f28 to 7343be9 Compare January 24, 2024 12:55
@psychocoderHPC psychocoderHPC merged commit 15a56e9 into alpaka-group:develop Jan 25, 2024
22 checks passed
@psychocoderHPC psychocoderHPC added this to the 1.2.0 milestone Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants